public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/10585: Using typeof() for template parameters does not work (and ICEs on 3.3)
@ 2003-05-16  7:54 reichelt
  0 siblings, 0 replies; 3+ messages in thread
From: reichelt @ 2003-05-16  7:54 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, giovannibajo, grey.havens, nobody

Synopsis: Using typeof() for template parameters does not work (and ICEs on 3.3)

State-Changed-From-To: analyzed->closed
State-Changed-By: reichelt
State-Changed-When: Fri May 16 07:54:57 2003
State-Changed-Why:
    Fixed on mainline.
    (Most probably by Marks fix for PR 8385.)

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10585


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: c++/10585: Using typeof() for template parameters does not work (and ICEs on 3.3)
@ 2003-05-01 19:10 bangerth
  0 siblings, 0 replies; 3+ messages in thread
From: bangerth @ 2003-05-01 19:10 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, giovannibajo, grey.havens, nobody

Synopsis: Using typeof() for template parameters does not work (and ICEs on 3.3)

State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Thu May  1 19:10:31 2003
State-Changed-Why:
    Confirmed. All versions up to 3.3 ICE, so 3.4 is actually
    a progression.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10585


^ permalink raw reply	[flat|nested] 3+ messages in thread

* c++/10585: Using typeof() for template parameters does not work (and ICEs on 3.3)
@ 2003-05-01 18:46 giovannibajo
  0 siblings, 0 replies; 3+ messages in thread
From: giovannibajo @ 2003-05-01 18:46 UTC (permalink / raw)
  To: gcc-gnats


>Number:         10585
>Category:       c++
>Synopsis:       Using typeof() for template parameters does not work (and ICEs on 3.3)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Thu May 01 18:46:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Giovanni Bajo
>Release:        3.3 and 3.4 (CVS 20030430)
>Organization:
>Environment:
i686-pc-cygwin
>Description:
This is basically c++/4526, but epurated.

The following snippet does not compile on the active branch (3.3) and the mainline (3.4):

------------------------------------
struct X { typedef int type; };
X x;

template <typename T> struct A {
	typedef typename T::type type;
};

template <typename T> struct B {
	typename A<typeof(x)>::type y;
};

template class B<int>;
------------------------------------
pr4526.cpp:9: error: no type named `type' in `struct A<__typeof (x)>'
pr4526.cpp:9: error: ISO C++ forbids declaration of `y' with no type

3.3 CVS 20030421 even ICEs with this code snippet.

Note also that this bug might be related to c++/8007.
>How-To-Repeat:
Compile the above snippet
>Fix:
No known fix.
>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-05-16  7:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-16  7:54 c++/10585: Using typeof() for template parameters does not work (and ICEs on 3.3) reichelt
  -- strict thread matches above, loose matches on Subject: below --
2003-05-01 19:10 bangerth
2003-05-01 18:46 giovannibajo

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).