This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: g++ bug w/ exception specs
- From: Peter Schmid <schmid at snake dot iap dot physik dot tu-darmstadt dot de>
- To: <bkoz at redhat dot com>
- Cc: <gdr at codesourcery dot com>, <gcc-bugs at gcc dot gnu dot org>
- Date: Mon, 18 Feb 2002 20:05:13 +0100 (CET)
- Subject: Re: g++ bug w/ exception specs
Please confer PR C++/2384.
Martin Sebor says that this source code is illformed, because of 9.2, p2:
"A class is considered a completely-defined object type (basic.types) (or
complete type) at the closing } of the class-specifier. Within the class
member-specification, the class is regarded as complete within function
bodies, default arguments and constructor ctor-initializers (including
such things in nested classes). Otherwise it is regarded as incomplete
within its own class member-specification."
Hope this helps,
Peter Schmid