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
* [Bug c++/40740] [4.4/4.5 regression] template-id forgotten with arg-dep lookup
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 ` 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
2 siblings, 0 replies; 4+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-07-14 18:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from jason at gcc dot gnu dot org 2009-07-14 18:15 -------
Subject: Bug 40740
Author: jason
Date: Tue Jul 14 18:15:35 2009
New Revision: 149636
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149636
Log:
PR c++/40740
* semantics.c (perform_koenig_lookup): Handle empty template args.
Added:
trunk/gcc/testsuite/g++.dg/template/koenig8.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/semantics.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40740
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/40740] [4.4/4.5 regression] template-id forgotten with arg-dep lookup
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
2 siblings, 0 replies; 4+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-07-14 18:35 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jason at gcc dot gnu dot org 2009-07-14 18:35 -------
Subject: Bug 40740
Author: jason
Date: Tue Jul 14 18:35:13 2009
New Revision: 149640
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149640
Log:
PR c++/40740
* semantics.c (perform_koenig_lookup): Handle empty template args.
Added:
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/template/koenig8.C
- copied unchanged from r149636,
trunk/gcc/testsuite/g++.dg/template/koenig8.C
Modified:
branches/gcc-4_4-branch/gcc/ (props changed)
branches/gcc-4_4-branch/gcc/ChangeLog-2008 (props changed)
branches/gcc-4_4-branch/gcc/cp/ChangeLog
branches/gcc-4_4-branch/gcc/cp/ChangeLog-2007 (props changed)
branches/gcc-4_4-branch/gcc/cp/ChangeLog-2008 (props changed)
branches/gcc-4_4-branch/gcc/cp/semantics.c
branches/gcc-4_4-branch/gcc/testsuite/ChangeLog
branches/gcc-4_4-branch/gcc/testsuite/ChangeLog-2008 (props changed)
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/ (props changed)
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/cpp0x/decltype-38655.C
(props changed)
branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/torture/pr36227.c (props
changed)
branches/gcc-4_4-branch/gcc/testsuite/gcc.target/x86_64/abi/callabi/
(props changed)
Propchange: branches/gcc-4_4-branch/gcc/
('svn:mergeinfo' modified)
Propchange: branches/gcc-4_4-branch/gcc/ChangeLog-2008
('svn:mergeinfo' modified)
Propchange: branches/gcc-4_4-branch/gcc/cp/ChangeLog-2007
('svn:mergeinfo' modified)
Propchange: branches/gcc-4_4-branch/gcc/cp/ChangeLog-2008
('svn:mergeinfo' modified)
Propchange: branches/gcc-4_4-branch/gcc/testsuite/ChangeLog-2008
('svn:mergeinfo' modified)
Propchange: branches/gcc-4_4-branch/gcc/testsuite/g++.dg/
('svn:mergeinfo' modified)
Propchange: branches/gcc-4_4-branch/gcc/testsuite/g++.dg/cpp0x/decltype-38655.C
('svn:mergeinfo' modified)
Propchange: branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/torture/pr36227.c
('svn:mergeinfo' modified)
Propchange:
branches/gcc-4_4-branch/gcc/testsuite/gcc.target/x86_64/abi/callabi/
('svn:mergeinfo' modified)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40740
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/40740] [4.4/4.5 regression] template-id forgotten with arg-dep lookup
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
2 siblings, 0 replies; 4+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-07-14 18:42 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jason at gcc dot gnu dot org 2009-07-14 18:41 -------
Fixed for 4.4.1.
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.4.1
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).