[Bug c++/71943] New: Wreturn-type when combining destructor + return + __noreturn__ function

2016-07-20 Thread sigmaepsilon92 at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sigmaepsilon92 at gmail dot com Target Milestone: --- The following code gives me a Wreturn-type warning: extern void die(void) __attribute__((__noreturn__)); struct AutoDec

[Bug c/106929] New: declaration in switch-case doesn't fail since GCC 11

2022-09-13 Thread sigmaepsilon92 at gmail dot com via Gcc-bugs
y: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: sigmaepsilon92 at gmail dot com Target Milestone: --- this code should fail because declarations inside switch-cases aren't allowed without {}: void fn(int a) { switch (a) { case 0:

[Bug c/106929] declaration in switch-case doesn't fail since GCC 11

2022-09-13 Thread sigmaepsilon92 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106929 --- Comment #4 from Michael Zimmermann --- Interesting, but IMO it should still fail if you specify an older C standard e.g. using `-std=c89`, but currently it doesn't.