--- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-10
14:51 ---
(In reply to comment #2)
> Subject: RE: new object affectation in a switch
>
> So, I don't understand why :
...
> is OK for g++.
Because there is no initialization of a variable in the declaration.
>
se 2:
break;
case 3:
break;
}
is rejected with a french and english (:-D) error message !
>From: "pinskia at gcc dot gnu dot org" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: [Bug c++/21487] new object affectation in
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-10
13:12 ---
This is how C++ works, you can actually fall through case statements. This is
invalid code and G++
rejects it correctly.
--
What|Removed |Added
---