public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/7983: ICE for friend declaration using typedef in class template
@ 2002-09-19 17:16 austern
0 siblings, 0 replies; 2+ messages in thread
From: austern @ 2002-09-19 17:16 UTC (permalink / raw)
To: gcc-gnats
>Number: 7983
>Category: c++
>Synopsis: ICE for friend declaration using typedef in class template
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-illegal-code
>Submitter-Id: net
>Arrival-Date: Thu Sep 19 17:16:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: austern@apple.com
>Release: 3.1, TOT
>Organization:
>Environment:
Linux, MacOS X
>Description:
The following snippet gives misleading warnings and an ICE:
template<class T> class smart_ptr2 {
T* real_ptr;
public:
typedef typename T::subT td;
friend class td;
};
There is a real error in this code: it's illegal to use an elaborated-type-specifier with a typedef name. (7.1.3, paragraph 4, and 7.1.5.3.) However, an ICE is not the friendliest diagnostic.
The ICE is in pop_binding.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: c++/7983: ICE for friend declaration using typedef in class template
@ 2002-09-28 7:04 lerdsuwa
0 siblings, 0 replies; 2+ messages in thread
From: lerdsuwa @ 2002-09-28 7:04 UTC (permalink / raw)
To: austern, gcc-bugs, gcc-prs, nobody
Synopsis: ICE for friend declaration using typedef in class template
State-Changed-From-To: open->analyzed
State-Changed-By: lerdsuwa
State-Changed-When: Sat Sep 28 07:04:50 2002
State-Changed-Why:
Confirmed.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7983
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-09-28 14:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-19 17:16 c++/7983: ICE for friend declaration using typedef in class template austern
2002-09-28 7:04 lerdsuwa
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).