public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/10615: Forgetting 'typename' in function template return type causes segmentation fault.
@ 2003-05-04 9:42 giovannibajo
0 siblings, 0 replies; 2+ messages in thread
From: giovannibajo @ 2003-05-04 9:42 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, gccbugs, nobody
Synopsis: Forgetting 'typename' in function template return type causes segmentation fault.
State-Changed-From-To: open->closed
State-Changed-By: bajo
State-Changed-When: Sun May 4 09:42:09 2003
State-Changed-Why:
Confirmed in 2.95 -> 3.3, but fixed in 3.4 CVS 20030503. Thanks for the report.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10615
^ permalink raw reply [flat|nested] 2+ messages in thread
* c++/10615: Forgetting 'typename' in function template return type causes segmentation fault.
@ 2003-05-04 2:16 gccbugs
0 siblings, 0 replies; 2+ messages in thread
From: gccbugs @ 2003-05-04 2:16 UTC (permalink / raw)
To: gcc-gnats
>Number: 10615
>Category: c++
>Synopsis: Forgetting 'typename' in function template return type causes segmentation fault.
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-illegal-code
>Submitter-Id: net
>Arrival-Date: Sun May 04 02:16:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Eelis van der Weegen
>Release: gcc version 3.2.2
>Organization:
>Environment:
Configured with: ../gcc-3.2.2/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --target=i386-slackware-linux --host=i386-slackware-linux
Thread model: posix
>Description:
Compiling the following code:
template <class T>
struct A
{
struct B;
typedef typename B::type t;
};
template <class T> typename A<T>::t::u f (); // no problem
template <class T> A<T>::t::u g (); // forgot typename -> KABOOM!
results in the following error:
internal error: Segmentation fault
at the indicated line.
>How-To-Repeat:
Compile the code from the description.
>Fix:
No idea.
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-05-04 9:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-04 9:42 c++/10615: Forgetting 'typename' in function template return type causes segmentation fault giovannibajo
-- strict thread matches above, loose matches on Subject: below --
2003-05-04 2:16 gccbugs
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).