blob: ddce40c050dcf41fd09e20cb9b3929030d32b2cf (
plain)
1
2
3
4
5
6
7
8
9
10
|
// PR c++/63455
// { dg-options "-std=gnu++11" }
int main()
{
int x = 0;
// without '+0', gcc 4.6 gives a different error (no ICE though)
decltype(({ int y = x; y; })+0) v1 = 0;
}
|