public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/10639: using an inner class in a template class, G++ can't detect invalid constructor
@ 2003-05-06 10:18 giovannibajo
0 siblings, 0 replies; 2+ messages in thread
From: giovannibajo @ 2003-05-06 10:18 UTC (permalink / raw)
To: francois.delobel, gcc-bugs, gcc-prs, nobody
Synopsis: using an inner class in a template class, G++ can't detect invalid constructor
State-Changed-From-To: open->closed
State-Changed-By: bajo
State-Changed-When: Tue May 6 10:18:14 2003
State-Changed-Why:
Reconfirmed on 2.95 -> 3.3, but it's fixed in 3.4 CVS 20030503 probably thanks to the new parser. The error
message is:
pr10639.cpp:21: error: return type specification for constructor invalid
Thanks for your report.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10639
^ permalink raw reply [flat|nested] 2+ messages in thread
* c++/10639: using an inner class in a template class, G++ can't detect invalid constructor
@ 2003-05-06 9:06 francois.delobel
0 siblings, 0 replies; 2+ messages in thread
From: francois.delobel @ 2003-05-06 9:06 UTC (permalink / raw)
To: gcc-gnats
>Number: 10639
>Category: c++
>Synopsis: using an inner class in a template class, G++ can't detect invalid constructor
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-illegal-code
>Submitter-Id: net
>Arrival-Date: Tue May 06 09:06:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Francois Delobel
>Release: gcc version 2.95.4 20011002 (Debian prerelease) & gcc 3.2.3 20030415 (Debian prerelease) & version gcc 3.3 20030415 (Debian prerelease)
>Organization:
>Environment:
Linux (debian sarge, 2.4.20-k7, running on AMD XP1900)
>Description:
context: using an inner class in a template class
error: g++ can't detect an incorrect line (constructor returning a value) and exits with internal compiler error.
---- essai.cpp (preprocessed, 30 lines)--
# 1 "essai.cpp"
# 1 "<interne>"
# 1 "<ligne de commande>"
# 1 "essai.cpp"
template <class T>
class C {
public:
class Inner;
C(const T& t);
};
template <class T>
class C<T>::Inner {
public:
Inner();
};
template <class T>
C<T>::C(const T& t)
{ }
template <class T>
T C<T>::Inner::Inner()
{ }
int main()
{
C<int> o(7);
}
>How-To-Repeat:
g++ -Wall -ansi essai.cpp
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-05-06 10:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-06 10:18 c++/10639: using an inner class in a template class, G++ can't detect invalid constructor giovannibajo
-- strict thread matches above, loose matches on Subject: below --
2003-05-06 9:06 francois.delobel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).