projects
/
platform
/
upstream
/
gcc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
call.c (null_ptr_cst_p): Use maybe_constant_value.
[platform/upstream/gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-ice.C
1
// We used to crash on this instead of giving a decent error.
2
// { dg-options -std=c++0x }
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" }