[Bug c++/53109] New: e.E::~E() should compile without error in c++ 2011
mickael.guene at st dot com
gcc-bugzilla@gcc.gnu.org
Wed Apr 25 06:50:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53109
Bug #: 53109
Summary: e.E::~E() should compile without error in c++ 2011
Classification: Unclassified
Product: gcc
Version: 4.6.3
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: mickael.guene@st.com
Created attachment 27232
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27232
foo.cpp
When compiling attach foo.cpp with following command line:
g++ -std=c++0x foo.cpp -c
gcc return following error :
foo.cpp:7:7: error: request for member 'E::~E' in 'e', which is of non-class
type 'E'
According to c++ 2011 standard 3.4.3p6 this is a valid construction. Note also
that 3.4.3p5 doesn't apply to this construction since a pseudo-destructor-name,
according to 3p4 is not a name.
Mickael
More information about the Gcc-bugs
mailing list