++
Assignee: unassigned at gcc dot gnu.org
Reporter: p.pettinato+gcc at gmail dot com
Target Milestone: ---
Compiling the following on gcc 7.2.0 (Ubuntu Artful, x86_64-linux-gnu) fails:
int func()
{
return 1;
}
struct Data
{
int good = func();
int bad = 1;
int
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83556
--- Comment #1 from Paolo Pettinato ---
gcc 5.4.0 (Ubuntu Xenial, x86_64-linux-gnu) gives a more reasonable output:
$ g++ test.cpp -o a
test.cpp:8:21: warning: non-static data member initializers only available with
-std=c++11 or -std=gnu++11
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83556
Paolo Pettinato changed:
What|Removed |Added
Known to work||5.4.0
--- Comment #2 from Paolo Pettin
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83556
Paolo Pettinato changed:
What|Removed |Added
Known to work||6.3.0
Summary|ICE in gimpli