[Bug c/91820] missing error diagnosis of '&' in initialization

2019-12-20 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91820 Eric Gallager changed: What|Removed |Added Keywords||diagnostic CC|

[Bug c/91820] missing error diagnosis of '&' in initialization

2019-12-16 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91820 Manuel López-Ibáñez changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|

[Bug c/91820] missing error diagnosis of '&' in initialization

2019-09-19 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91820 --- Comment #5 from joseph at codesourcery dot com --- This is probably a duplicate of other bugs for cases that are not required in the standard to be constant expressions but are permitted as additional implementation-defined kinds of constan

[Bug c/91820] missing error diagnosis of '&' in initialization

2019-09-19 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91820 --- Comment #4 from Andrew Pinski --- -pedantic-errors

[Bug c/91820] missing error diagnosis of '&' in initialization

2019-09-19 Thread tangyixuan at mail dot dlut.edu.cn
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91820 --- Comment #3 from tangyixuan --- (In reply to Andrew Pinski from comment #1) > does adding -pedantic help? Thanks for your reply. When I add -padantic, gcc-trunk reports warning : 2:45: warning:initialization of ‘volatile int * volatile* const

[Bug c/91820] missing error diagnosis of '&' in initialization

2019-09-19 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91820 --- Comment #2 from Andrew Pinski --- My bet is that a is being treated as a "NULL Pointer cosntant"

[Bug c/91820] missing error diagnosis of '&' in initialization

2019-09-19 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91820 --- Comment #1 from Andrew Pinski --- does adding -pedantic help?