[I'm sorry if this falls into the "two stage lookup in template" category. The bugs.html page does not explain what that means.] GCC fails to compile the attached file as follow: ~/tmp % gcc-3.0 c2.cc c2.cc: In function `int main()': c2.cc:20: `ret' is not a member of type `C<1, 2>::output<D<8, 1> >' c2.cc:20: parse error before `;' token The on-line C/C++ Comeau compiles it just fine. Release: 3.0.2 Environment: Debian GNU/Linux i386 How-To-Repeat: Compile the attached file.
State-Changed-From-To: open->analyzed State-Changed-Why: Confirmed.
From: lerdsuwa@gcc.gnu.org To: duret_g@epita.fr, gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org Cc: Subject: Re: c++/4882: fails to lookup a template specialization dependent of an outer template Date: 16 Nov 2001 17:07:06 -0000 Synopsis: fails to lookup a template specialization dependent of an outer template State-Changed-From-To: open->analyzed State-Changed-By: lerdsuwa State-Changed-When: Fri Nov 16 09:07:05 2001 State-Changed-Why: Confirmed. http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4882&database=gcc
Responsible-Changed-From-To: unassigned->lerdsuwa Responsible-Changed-Why: Under investigation.
From: Nathanael Nerode <neroden@twcny.rr.com> To: gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, lerdsuwa@gcc.gnu.org, duret_g@epita.fr, gcc-bugs@gcc.gnu.org Cc: Subject: Re: c++/4882: ... Date: Fri, 3 Jan 2003 11:19:20 -0500 New error message with 3.4: ice.cxx: In function `int main()': ice.cxx:20: error: `ret' is not a member of `struct C<1, 2>::output<D<8, 1> >' ice.cxx:20: error: expected `;'
*** Bug 18007 has been marked as a duplicate of this bug. ***
Likely related to PR 10574. W.
There quite some discussion on this matter in PR 13088. W.
Work postponed to GCC 4.1. This bug is tricky to fix.
Won't work on it for a long while.
This is a duplicate of PR14032, which has more information on the matter than the present one. W. *** This bug has been marked as a duplicate of 14032 ***