public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/9341: [3.4 regression] Specialization after use gives error
@ 2003-01-16 21:06 mmitchel
  0 siblings, 0 replies; 2+ messages in thread
From: mmitchel @ 2003-01-16 21:06 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, rguenth

Synopsis: [3.4 regression] Specialization after use gives error

State-Changed-From-To: open->closed
State-Changed-By: mmitchel
State-Changed-When: Thu Jan 16 13:06:41 2003
State-Changed-Why:
    Fixed in GCC 3.4.

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


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

* c++/9341: [3.4 regression] Specialization after use gives error
@ 2003-01-16 10:46 rguenth
  0 siblings, 0 replies; 2+ messages in thread
From: rguenth @ 2003-01-16 10:46 UTC (permalink / raw)
  To: gcc-gnats


>Number:         9341
>Category:       c++
>Synopsis:       [3.4 regression] Specialization after use gives error
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 16 02:46:02 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Richard Guenther
>Release:        g++ (GCC) 3.4 20030115 (experimental)
>Organization:
>Environment:
ix86-linux
>Description:
template<class T, class U>
struct UnaryReturn {
        typedef T Type_t;
};
struct foo
{
        template <class T>
        typename UnaryReturn<T, int>::Type_t foo();
};
template<class T>
struct UnaryReturn<T, int> {
        typedef bool Type_t;
};

gives

bellatrix:~/src/tests$ ~/ix86/gcc3.4/bin/g++ -c -Wall insbefdecl.cpp 
insbefdecl.cpp:8: error: return type specification for constructor invalid
insbefdecl.cpp:11: error: specialization of `UnaryReturn<T, int>' after instantiation

>From Mark Mitchell:

This is a bug -- but not in the new parser.  This is lingering fallout from the now-almost-gone implicit typename extension.  I will use this as the excuse to kill the last vestiges of that ugliness.
>How-To-Repeat:
compile the testcase with the new parser
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2003-01-16 21:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-16 21:06 c++/9341: [3.4 regression] Specialization after use gives error mmitchel
  -- strict thread matches above, loose matches on Subject: below --
2003-01-16 10:46 rguenth

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