This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/16877] New: resolution of core issue 147 not implemented
- From: "sebor at roguewave dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Aug 2004 17:04:05 -0000
- Subject: [Bug c++/16877] New: resolution of core issue 147 not implemented
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Gcc 3.4 fails to diagnose the following ill-formed program. Core issue 147
clarifies the standard to explicitly forbid the construct anywhere but in
definitions of ctors outside the class. The resolution of the issue has
been incorporated into ISO/IEC 14882:2003 -- see 3.4.3.1, p1a.
http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#147
$ cat t.cpp && gcc --version && gcc -Wall -Wextra -pedantic t.cpp
int main ()
{
struct S { };
(void)S::S ();
}
gcc (GCC) 3.4.0
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
Summary: resolution of core issue 147 not implemented
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: sebor at roguewave dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: all
GCC host triplet: all
GCC target triplet: all
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16877