public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/9411: [3.4 regression] [New parser] Template function lookup problem
@ 2003-04-16 20:07 reichelt
  0 siblings, 0 replies; 2+ messages in thread
From: reichelt @ 2003-04-16 20:07 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, mmitchel, rguenth

Synopsis: [3.4 regression] [New parser] Template function lookup problem

State-Changed-From-To: analyzed->closed
State-Changed-By: reichelt
State-Changed-When: Wed Apr 16 20:07:24 2003
State-Changed-Why:
    Fixed.
    Btw., it's the same problem as in PR 9486.

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


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

* Re: c++/9411: [3.4 regression] [New parser] Template function lookup problem
@ 2003-01-23  0:32 bangerth
  0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2003-01-23  0:32 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, mmitchel, nobody, rguenth

Old Synopsis: Template function lookup problem (new parser)
New Synopsis: [3.4 regression] [New parser] Template function lookup problem

Responsible-Changed-From-To: unassigned->mmitchel
Responsible-Changed-By: bangerth
Responsible-Changed-When: Thu Jan 23 00:32:27 2003
Responsible-Changed-Why:
    He's the new parser man.
State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Thu Jan 23 00:32:27 2003
State-Changed-Why:
    Confirmed. Here's a slightly simpler snippet:
    -----------------------
    struct X {
        template <class B> void foo(B);
    };
    
    template <class D>
    void bar() {
      X().foo<D>(1);
    }
    
    template void bar<int> ();
    --------------------------------
    We now get
    g/a> /home/bangerth/bin/gcc-3.4-pre/bin/gcc -c x.cc
    x.cc: In function `void bar() [with D = int]':
    x.cc:10:   instantiated from here
    x.cc:7: error: no matching function for call to `X::foo(int)'
    g/a> /home/bangerth/bin/gcc-3.3-pre/bin/gcc -c x.cc
    
    It works on the 3.3 branch. This should really work, I'd
    guess. Note that using "X().template foo<D>" also does no
    good.
    
    W.

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


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

end of thread, other threads:[~2003-04-16 20:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-16 20:07 c++/9411: [3.4 regression] [New parser] Template function lookup problem reichelt
  -- strict thread matches above, loose matches on Subject: below --
2003-01-23  0:32 bangerth

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