PR c++/67131 * class.c (is_really_empty_class): Call complete_type. * constexpr.c (cxx_eval_constant_expression): Check is_really_empty_class. (potential_constant_expression_1): Likewise. Check for error type. From-SVN: r239267
8 lines
134 B
C
8 lines
134 B
C
// { dg-do compile { target c++11 } }
|
|
|
|
struct A {
|
|
struct B { } b;
|
|
} a;
|
|
constexpr int f (A a) { return 42; }
|
|
constexpr int i = f(a);
|