[Bug c++/64666] gcc wrongly accepts assignment in constant expression

2016-10-10 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64666 Jason Merrill changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/64666] gcc wrongly accepts assignment in constant expression

2016-10-10 Thread harald at gigawatt dot nl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64666 --- Comment #7 from Harald van Dijk --- (In reply to Jason Merrill from comment #6) > > but > > anyway, even with -std=c++14 -pedantic-errors, no message at all is given > > for the program in my earlier comment. > > I don't see the syntax error

[Bug c++/64666] gcc wrongly accepts assignment in constant expression

2016-10-10 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64666 Jason Merrill changed: What|Removed |Added CC||jason at gcc dot gnu.org --- Comment #6

[Bug c++/64666] gcc wrongly accepts assignment in constant expression

2015-03-26 Thread harald at gigawatt dot nl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64666 --- Comment #5 from Harald van Dijk --- (In reply to Jakub Jelinek from comment #4) > Just use -pedantic-errors if you want strict language conformance? -std=* -pedantic is supposed to be enough to get GCC to conform to the specified standard (t

[Bug c++/64666] gcc wrongly accepts assignment in constant expression

2015-03-26 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64666 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #4

[Bug c++/64666] gcc wrongly accepts assignment in constant expression

2015-03-26 Thread harald at gigawatt dot nl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64666 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl --- Comment

[Bug c++/64666] gcc wrongly accepts assignment in constant expression

2015-01-19 Thread dcb314 at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64666 --- Comment #2 from David Binderman --- (In reply to Andrew Pinski from comment #1) > VLA is a gcc extension. I added switch -std=c++98 and it made no change. I added -pedantic and I got the vla warning. jan19g.cc:6:14: warning: ISO C++ forbid

[Bug c++/64666] gcc wrongly accepts assignment in constant expression

2015-01-19 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64666 --- Comment #1 from Andrew Pinski --- VLA is a gcc extension.