public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/14409] [3.3/3.4/3.5 regression] Accepts invalid function signature for explicit instantiation
2004-03-03 15:32 [Bug c++/14409] New: [3.3/3.4/3.5 regression] Accepts invalid function signature for explicit instantiation bangerth at dealii dot org
@ 2004-03-03 15:32 ` bangerth at dealii dot org
2004-03-03 17:00 ` pinskia at gcc dot gnu dot org
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: bangerth at dealii dot org @ 2004-03-03 15:32 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |3.2.3 3.3.3 3.4.0 3.5.0
Known to work| |2.95.3
Target Milestone|--- |3.3.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14409
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/14409] New: [3.3/3.4/3.5 regression] Accepts invalid function signature for explicit instantiation
@ 2004-03-03 15:32 bangerth at dealii dot org
2004-03-03 15:32 ` [Bug c++/14409] " bangerth at dealii dot org
` (11 more replies)
0 siblings, 12 replies; 13+ messages in thread
From: bangerth at dealii dot org @ 2004-03-03 15:32 UTC (permalink / raw)
To: gcc-bugs
3.3, 3.4 and mainline accept this piece of invalid code (note the
missing 'const' on the signature in the explicit instantiation):
--------------------
template <typename T> struct X
{
template <typename U> void foo (U) const {};
};
template void X<int>::foo (int);
--------------------
On the other hand, 2.95 rejected this:
g/x> /home/bangerth/bin/gcc-2*/bin/c++ -c x.cc
x.cc:6: template-id `foo<>' for `X<int>::foo(int)' does not match any template
declaration
x.cc:6: confused by earlier errors, bailing out
So this is a regression.
W.
--
Summary: [3.3/3.4/3.5 regression] Accepts invalid function
signature for explicit instantiation
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bangerth at dealii dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14409
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/14409] [3.3/3.4/3.5 regression] Accepts invalid function signature for explicit instantiation
2004-03-03 15:32 [Bug c++/14409] New: [3.3/3.4/3.5 regression] Accepts invalid function signature for explicit instantiation bangerth at dealii dot org
2004-03-03 15:32 ` [Bug c++/14409] " bangerth at dealii dot org
@ 2004-03-03 17:00 ` pinskia at gcc dot gnu dot org
2004-03-03 19:22 ` giovannibajo at libero dot it
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-03 17:00 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-03-03 17:00 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords|rejects-valid |accepts-invalid
Known to fail|3.2.3 3.3.3 3.4.0 3.5.0 |3.2.3 3.3.3 3.4.0 3.5.0
| |3.3.1 3.0.4
Last reconfirmed|0000-00-00 00:00:00 |2004-03-03 17:00:51
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14409
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/14409] [3.3/3.4/3.5 regression] Accepts invalid function signature for explicit instantiation
2004-03-03 15:32 [Bug c++/14409] New: [3.3/3.4/3.5 regression] Accepts invalid function signature for explicit instantiation bangerth at dealii dot org
2004-03-03 15:32 ` [Bug c++/14409] " bangerth at dealii dot org
2004-03-03 17:00 ` pinskia at gcc dot gnu dot org
@ 2004-03-03 19:22 ` giovannibajo at libero dot it
2004-03-04 3:29 ` giovannibajo at libero dot it
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: giovannibajo at libero dot it @ 2004-03-03 19:22 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2004-03-03 19:22 -------
This looks like another bug in check_classfn. I'll look into it.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |giovannibajo at libero dot
|dot org |it
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14409
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/14409] [3.3/3.4/3.5 regression] Accepts invalid function signature for explicit instantiation
2004-03-03 15:32 [Bug c++/14409] New: [3.3/3.4/3.5 regression] Accepts invalid function signature for explicit instantiation bangerth at dealii dot org
` (2 preceding siblings ...)
2004-03-03 19:22 ` giovannibajo at libero dot it
@ 2004-03-04 3:29 ` giovannibajo at libero dot it
2004-03-09 10:45 ` mmitchel at gcc dot gnu dot org
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: giovannibajo at libero dot it @ 2004-03-04 3:29 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2004-03-04 03:29 -------
Patch posted, waiting for review:
http://gcc.gnu.org/ml/gcc-patches/2004-03/msg00361.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14409
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/14409] [3.3/3.4/3.5 regression] Accepts invalid function signature for explicit instantiation
2004-03-03 15:32 [Bug c++/14409] New: [3.3/3.4/3.5 regression] Accepts invalid function signature for explicit instantiation bangerth at dealii dot org
` (3 preceding siblings ...)
2004-03-04 3:29 ` giovannibajo at libero dot it
@ 2004-03-09 10:45 ` mmitchel at gcc dot gnu dot org
2004-03-09 15:27 ` giovannibajo at libero dot it
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-03-09 10:45 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-03-09 10:45 -------
This patch is OK for 3.4 and mailine, but you should spell the call to
"comptypes" as "same_type_p".
Thanks!
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14409
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/14409] [3.3/3.4/3.5 regression] Accepts invalid function signature for explicit instantiation
2004-03-03 15:32 [Bug c++/14409] New: [3.3/3.4/3.5 regression] Accepts invalid function signature for explicit instantiation bangerth at dealii dot org
` (4 preceding siblings ...)
2004-03-09 10:45 ` mmitchel at gcc dot gnu dot org
@ 2004-03-09 15:27 ` giovannibajo at libero dot it
2004-03-09 15:35 ` cvs-commit at gcc dot gnu dot org
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: giovannibajo at libero dot it @ 2004-03-09 15:27 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2004-03-09 15:26 -------
Gaby, is this OK for 3.3 as well?
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |gdr at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14409
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/14409] [3.3/3.4/3.5 regression] Accepts invalid function signature for explicit instantiation
2004-03-03 15:32 [Bug c++/14409] New: [3.3/3.4/3.5 regression] Accepts invalid function signature for explicit instantiation bangerth at dealii dot org
` (5 preceding siblings ...)
2004-03-09 15:27 ` giovannibajo at libero dot it
@ 2004-03-09 15:35 ` cvs-commit at gcc dot gnu dot org
2004-03-09 15:41 ` cvs-commit at gcc dot gnu dot org
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-03-09 15:35 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-03-09 15:35 -------
Subject: Bug 14409
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: giovannibajo@gcc.gnu.org 2004-03-09 15:35:03
Modified files:
gcc/cp : ChangeLog parser.c pt.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/template: spec12.C
gcc/testsuite/g++.dg/parse: crash14.C
Log message:
PR c++/14409
* pt.c (determine_specialization): For member templates, match also
constness.
PR c++/14448
* parser.c (cp_parser_initializer_clause): Fold initializer if it is
non-dependent.
* pt.c (tsubst_copy_and_build): Handle NOP_EXPRs.
PR c++/14409
* g++.dg/template/spec12.C: New test.
PR c++/14448
* g++.dg/parse/crash14.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.3990&r2=1.3991
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/parser.c.diff?cvsroot=gcc&r1=1.180&r2=1.181
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/pt.c.diff?cvsroot=gcc&r1=1.836&r2=1.837
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3586&r2=1.3587
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/spec12.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/crash14.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14409
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/14409] [3.3/3.4/3.5 regression] Accepts invalid function signature for explicit instantiation
2004-03-03 15:32 [Bug c++/14409] New: [3.3/3.4/3.5 regression] Accepts invalid function signature for explicit instantiation bangerth at dealii dot org
` (6 preceding siblings ...)
2004-03-09 15:35 ` cvs-commit at gcc dot gnu dot org
@ 2004-03-09 15:41 ` cvs-commit at gcc dot gnu dot org
2004-03-09 16:00 ` [Bug c++/14409] [3.3 " gdr at integrable-solutions dot net
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-03-09 15:41 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-03-09 15:41 -------
Subject: Bug 14409
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: giovannibajo@gcc.gnu.org 2004-03-09 15:41:38
Modified files:
gcc/cp : ChangeLog parser.c pt.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/template: spec12.C
gcc/testsuite/g++.dg/parse: crash14.C
Log message:
PR c++/14409
* pt.c (determine_specialization): For member templates, match also
constness.
PR c++/14448
* parser.c (cp_parser_initializer_clause): Fold initializer if it is
non-dependent.
* pt.c (tsubst_copy_and_build): Handle NOP_EXPRs.
PR c++/14409
* g++.dg/template/spec12.C: New test.
PR c++/14448
* g++.dg/parse/crash14.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3892.2.75&r2=1.3892.2.76
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/parser.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.157.2.19&r2=1.157.2.20
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/pt.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.816.2.17&r2=1.816.2.18
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3389.2.134&r2=1.3389.2.135
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/spec12.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/crash14.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14409
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/14409] [3.3 regression] Accepts invalid function signature for explicit instantiation
2004-03-03 15:32 [Bug c++/14409] New: [3.3/3.4/3.5 regression] Accepts invalid function signature for explicit instantiation bangerth at dealii dot org
` (7 preceding siblings ...)
2004-03-09 15:41 ` cvs-commit at gcc dot gnu dot org
@ 2004-03-09 16:00 ` gdr at integrable-solutions dot net
2004-03-09 16:23 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: gdr at integrable-solutions dot net @ 2004-03-09 16:00 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From gdr at integrable-solutions dot net 2004-03-09 16:00 -------
Subject: Re: [3.3/3.4/3.5 regression] Accepts invalid function signature for explicit instantiation
"giovannibajo at libero dot it" <gcc-bugzilla@gcc.gnu.org> writes:
| Gaby, is this OK for 3.3 as well?
Yes.
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14409
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/14409] [3.3 regression] Accepts invalid function signature for explicit instantiation
2004-03-03 15:32 [Bug c++/14409] New: [3.3/3.4/3.5 regression] Accepts invalid function signature for explicit instantiation bangerth at dealii dot org
` (8 preceding siblings ...)
2004-03-09 16:00 ` [Bug c++/14409] [3.3 " gdr at integrable-solutions dot net
@ 2004-03-09 16:23 ` cvs-commit at gcc dot gnu dot org
2004-03-09 16:25 ` giovannibajo at libero dot it
2004-03-10 8:49 ` gdr at integrable-solutions dot net
11 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-03-09 16:23 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-03-09 16:23 -------
Subject: Bug 14409
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_3-branch
Changes by: giovannibajo@gcc.gnu.org 2004-03-09 16:23:45
Modified files:
gcc/cp : ChangeLog pt.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/template: spec12.C
Log message:
PR c++/14409
* pt.c (determine_specialization): For member templates, match also
constness.
PR c++/14409
* g++.dg/template/spec12.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.3076.2.258&r2=1.3076.2.259
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/pt.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.635.2.43&r2=1.635.2.44
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.2261.2.363&r2=1.2261.2.364
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/spec12.C.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=NONE&r2=1.1.4.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14409
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/14409] [3.3 regression] Accepts invalid function signature for explicit instantiation
2004-03-03 15:32 [Bug c++/14409] New: [3.3/3.4/3.5 regression] Accepts invalid function signature for explicit instantiation bangerth at dealii dot org
` (9 preceding siblings ...)
2004-03-09 16:23 ` cvs-commit at gcc dot gnu dot org
@ 2004-03-09 16:25 ` giovannibajo at libero dot it
2004-03-10 8:49 ` gdr at integrable-solutions dot net
11 siblings, 0 replies; 13+ messages in thread
From: giovannibajo at libero dot it @ 2004-03-09 16:25 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2004-03-09 16:25 -------
Fixed in 3.3.4, 3.4.0 and 3.5.0.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14409
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/14409] [3.3 regression] Accepts invalid function signature for explicit instantiation
2004-03-03 15:32 [Bug c++/14409] New: [3.3/3.4/3.5 regression] Accepts invalid function signature for explicit instantiation bangerth at dealii dot org
` (10 preceding siblings ...)
2004-03-09 16:25 ` giovannibajo at libero dot it
@ 2004-03-10 8:49 ` gdr at integrable-solutions dot net
11 siblings, 0 replies; 13+ messages in thread
From: gdr at integrable-solutions dot net @ 2004-03-10 8:49 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From gdr at integrable-solutions dot net 2004-03-10 08:49 -------
Subject: Re: [3.3 regression] Accepts invalid function signature for explicit instantiation
"giovannibajo at libero dot it" <gcc-bugzilla@gcc.gnu.org> writes:
| Fixed in 3.3.4, 3.4.0 and 3.5.0.
Thanks.
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14409
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2004-03-10 8:49 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-03 15:32 [Bug c++/14409] New: [3.3/3.4/3.5 regression] Accepts invalid function signature for explicit instantiation bangerth at dealii dot org
2004-03-03 15:32 ` [Bug c++/14409] " bangerth at dealii dot org
2004-03-03 17:00 ` pinskia at gcc dot gnu dot org
2004-03-03 19:22 ` giovannibajo at libero dot it
2004-03-04 3:29 ` giovannibajo at libero dot it
2004-03-09 10:45 ` mmitchel at gcc dot gnu dot org
2004-03-09 15:27 ` giovannibajo at libero dot it
2004-03-09 15:35 ` cvs-commit at gcc dot gnu dot org
2004-03-09 15:41 ` cvs-commit at gcc dot gnu dot org
2004-03-09 16:00 ` [Bug c++/14409] [3.3 " gdr at integrable-solutions dot net
2004-03-09 16:23 ` cvs-commit at gcc dot gnu dot org
2004-03-09 16:25 ` giovannibajo at libero dot it
2004-03-10 8:49 ` gdr at integrable-solutions dot net
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).