This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: warning not issued
- To: jbuck at synopsys dot com
- Subject: Re: warning not issued
- From: Martin von Loewis <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Thu, 22 Oct 1998 23:13:33 +0100
- CC: tudor at cs dot unh dot edu, egcs at cygnus dot com
- References: <199810220415.VAA09209@atrus.synopsys.com>
> This is not legal C++; you can't jump around an initializer with a
> goto or a switch unless the initializer is inside curly braces.
> Just the same, the compiler should have caught it ... I'm sure this
> was missed because most folks don't use goto.
I think this is exactly the complaint. The compiler does catch cases
like
struct X{
X();
};
main()
{
goto a;
X x;
a: X y;
}
Bug reports should go to egcs-bugs@cygnus.com, though.
Regards,
Martin