[Bug c++/96077] GCC accepts ill-legal local enum definition

2020-07-13 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96077 --- Comment #9 from Marek Polacek --- Fixed for GCC 10.2 and 11.

[Bug c++/96077] GCC accepts ill-legal local enum definition

2020-07-13 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96077 --- Comment #8 from CVS Commits --- The releases/gcc-10 branch has been updated by Marek Polacek : https://gcc.gnu.org/g:30529e2faa482bc749c65a490763dbc2ccaf63ac commit r10-8470-g30529e2faa482bc749c65a490763dbc2ccaf63ac Author: Marek Polacek

[Bug c++/96077] GCC accepts ill-legal local enum definition

2020-07-13 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96077 Marek Polacek changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/96077] GCC accepts ill-legal local enum definition

2020-07-13 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96077 --- Comment #7 from CVS Commits --- The master branch has been updated by Marek Polacek : https://gcc.gnu.org/g:4fd124a23664c712f1bb1a7e91fa23fe83d72c0b commit r11-2064-g4fd124a23664c712f1bb1a7e91fa23fe83d72c0b Author: Marek Polacek Date:

[Bug c++/96077] GCC accepts ill-legal local enum definition

2020-07-10 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96077 Marek Polacek changed: What|Removed |Added Keywords||patch --- Comment #6 from Marek Polacek

[Bug c++/96077] GCC accepts ill-legal local enum definition

2020-07-09 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96077 Marek Polacek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org

[Bug c++/96077] GCC accepts ill-legal local enum definition

2020-07-09 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96077 --- Comment #4 from Marek Polacek --- Doesn't even need to be in the ?: operator: int main () { enum { E = (2 } e; if (E != 2) __builtin_abort (); }

[Bug c++/96077] GCC accepts ill-legal local enum definition

2020-07-08 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96077 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

[Bug c++/96077] GCC accepts ill-legal local enum definition

2020-07-06 Thread haoxintu at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96077 --- Comment #2 from Haoxin Tu --- (In reply to Jonathan Wakely from comment #1) > It's not ideal to provide a testcase that doesn't compile for an > accepts-invalid bug. A testcase that actually compiles is a better > demonstration that the

[Bug c++/96077] GCC accepts ill-legal local enum definition

2020-07-06 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96077 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0