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
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:
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.