public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/40740]  New: [4.4/4.5 regression] template-id forgotten with arg-dep lookup
@ 2009-07-14  8:26 jason at gcc dot gnu dot org
  2009-07-14 18:16 ` [Bug c++/40740] " jason at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-07-14  8:26 UTC (permalink / raw)
  To: gcc-bugs

>From https://bugzilla.redhat.com/show_bug.cgi?id=511168:

template<class T>
T addsome(T v) {
  return v+1;
}

int addsome(int v) {
  return v+2;
}

int main() {
  int i = 0;
  if (addsome(i) != 2)
    return 1;
  if (addsome<>(i) != 1)
    return 2;
  return 0;
}

Broken by fix for PR 13549.


-- 
           Summary: [4.4/4.5 regression] template-id forgotten with arg-dep
                    lookup
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: jason at gcc dot gnu dot org
        ReportedBy: jason at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40740


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

end of thread, other threads:[~2009-07-14 18:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-14  8:26 [Bug c++/40740] New: [4.4/4.5 regression] template-id forgotten with arg-dep lookup jason at gcc dot gnu dot org
2009-07-14 18:16 ` [Bug c++/40740] " jason at gcc dot gnu dot org
2009-07-14 18:35 ` jason at gcc dot gnu dot org
2009-07-14 18:42 ` jason at gcc dot gnu dot org

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