repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Daily bump.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-ice.C
blob
fb7570f5ff96ae2bf2d455dd7cdbd594802cc319
1
// We used to crash on this instead of giving a decent error.
2
// { dg-do compile { target c++11 } }
3
4
struct A { int i; };
5
6
struct B {
7
const A *a;
8
constexpr B(const A& a): a(&a) { }
9
};
10
11
constexpr B b{A{42}}; // { dg-error "constant|expansion" }