egcs 1.1.2 bug (fwd)

H.J. Lu hjl@lucon.org
Wed Mar 17 07:29:00 GMT 1999


Anyway, here is a probable bug, for your pleasure! (MSVC and many
other compilers accept this - I didn't look at the official grammar all
the same).

class x
{
};

int
a()
{
    throw(x()); // This won't compile.
    //throw x(); // This will
}

> H.J.

Matthew
-- 
Matthew Newhook				E-Mail: mailto:matthew@ooc.com
Software Designer			WWW:    http://www.ooc.com
Object Oriented Concepts, Inc.		Phone:  (978) 439 9285 x 246


More information about the Gcc-bugs mailing list