public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/35075] New: [4.3 regression] ICE with references in templates
@ 2008-02-04 13:26 reichelt at gcc dot gnu dot org
2008-02-04 13:27 ` [Bug c++/35075] " reichelt at gcc dot gnu dot org
` (11 more replies)
0 siblings, 12 replies; 13+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-02-04 13:26 UTC (permalink / raw)
To: gcc-bugs
The following (IMHO invalid) code snippet triggers an ICE since GCC 4.0.0:
==========================================
template<int&> struct A {};
template<typename T> struct B
{
static const T t;
A<t> a;
};
B<int&> b;
==========================================
bug.cc: In instantiation of 'B<int&>':
bug.cc:9: instantiated from here
bug.cc:6: internal compiler error: tree check: expected tree that contains
'decl minimal' structure, have 'indirect_ref' in decl_linkage, at
cp/tree.c:2502
Please submit a full bug report, [etc.]
--
Summary: [4.3 regression] ICE with references in templates
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, monitored
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35075
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/35075] [4.3 regression] ICE with references in templates
2008-02-04 13:26 [Bug c++/35075] New: [4.3 regression] ICE with references in templates reichelt at gcc dot gnu dot org
@ 2008-02-04 13:27 ` reichelt at gcc dot gnu dot org
2008-02-04 13:40 ` [Bug c++/35075] [4.1/4.2/4.3 " rguenth at gcc dot gnu dot org
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-02-04 13:27 UTC (permalink / raw)
To: gcc-bugs
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.1.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35075
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/35075] [4.1/4.2/4.3 regression] ICE with references in templates
2008-02-04 13:26 [Bug c++/35075] New: [4.3 regression] ICE with references in templates reichelt at gcc dot gnu dot org
2008-02-04 13:27 ` [Bug c++/35075] " reichelt at gcc dot gnu dot org
@ 2008-02-04 13:40 ` rguenth at gcc dot gnu dot org
2008-07-04 22:32 ` [Bug c++/35075] [4.2/4.3/4.4 " jsm28 at gcc dot gnu dot org
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-02-04 13:40 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from rguenth at gcc dot gnu dot org 2008-02-04 13:40 -------
Without checking you get:
t.C: In instantiation of 'B<int&>':
t.C:9: instantiated from here
t.C:6: error: 'B<int&>::t' is not a valid template argument for type 'int&'
because object '#'indirect_ref' not supported by dump_decl#<declaration error>'
has not external linkage
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |diagnostic, ice-checking
Known to fail| |4.0.0
Priority|P3 |P4
Last reconfirmed|0000-00-00 00:00:00 |2008-02-04 13:40:05
date| |
Summary|[4.3 regression] ICE with |[4.1/4.2/4.3 regression] ICE
|references in templates |with references in templates
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35075
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/35075] [4.2/4.3/4.4 regression] ICE with references in templates
2008-02-04 13:26 [Bug c++/35075] New: [4.3 regression] ICE with references in templates reichelt at gcc dot gnu dot org
2008-02-04 13:27 ` [Bug c++/35075] " reichelt at gcc dot gnu dot org
2008-02-04 13:40 ` [Bug c++/35075] [4.1/4.2/4.3 " rguenth at gcc dot gnu dot org
@ 2008-07-04 22:32 ` jsm28 at gcc dot gnu dot org
2009-02-02 1:58 ` paolo dot carlini at oracle dot com
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-07-04 22:32 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jsm28 at gcc dot gnu dot org 2008-07-04 22:32 -------
Closing 4.1 branch.
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.1/4.2/4.3/4.4 regression]|[4.2/4.3/4.4 regression] ICE
|ICE with references in |with references in templates
|templates |
Target Milestone|4.1.3 |4.2.5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35075
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/35075] [4.2/4.3/4.4 regression] ICE with references in templates
2008-02-04 13:26 [Bug c++/35075] New: [4.3 regression] ICE with references in templates reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2008-07-04 22:32 ` [Bug c++/35075] [4.2/4.3/4.4 " jsm28 at gcc dot gnu dot org
@ 2009-02-02 1:58 ` paolo dot carlini at oracle dot com
2009-03-31 20:19 ` [Bug c++/35075] [4.3/4.4/4.5 " jsm28 at gcc dot gnu dot org
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-02-02 1:58 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from paolo dot carlini at oracle dot com 2009-02-02 01:58 -------
Mine.
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |paolo dot carlini at oracle
|dot org |dot com
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35075
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/35075] [4.3/4.4/4.5 regression] ICE with references in templates
2008-02-04 13:26 [Bug c++/35075] New: [4.3 regression] ICE with references in templates reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2009-02-02 1:58 ` paolo dot carlini at oracle dot com
@ 2009-03-31 20:19 ` jsm28 at gcc dot gnu dot org
2009-08-04 12:38 ` rguenth at gcc dot gnu dot org
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-03-31 20:19 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jsm28 at gcc dot gnu dot org 2009-03-31 20:18 -------
Closing 4.2 branch.
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.2/4.3/4.4/4.5 regression]|[4.3/4.4/4.5 regression] ICE
|ICE with references in |with references in templates
|templates |
Target Milestone|4.2.5 |4.3.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35075
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/35075] [4.3/4.4/4.5 regression] ICE with references in templates
2008-02-04 13:26 [Bug c++/35075] New: [4.3 regression] ICE with references in templates reichelt at gcc dot gnu dot org
` (4 preceding siblings ...)
2009-03-31 20:19 ` [Bug c++/35075] [4.3/4.4/4.5 " jsm28 at gcc dot gnu dot org
@ 2009-08-04 12:38 ` rguenth at gcc dot gnu dot org
2009-08-04 12:55 ` paolo dot carlini at oracle dot com
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-08-04 12:38 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from rguenth at gcc dot gnu dot org 2009-08-04 12:28 -------
GCC 4.3.4 is being released, adjusting target milestone.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.3.4 |4.3.5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35075
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/35075] [4.3/4.4/4.5 regression] ICE with references in templates
2008-02-04 13:26 [Bug c++/35075] New: [4.3 regression] ICE with references in templates reichelt at gcc dot gnu dot org
` (5 preceding siblings ...)
2009-08-04 12:38 ` rguenth at gcc dot gnu dot org
@ 2009-08-04 12:55 ` paolo dot carlini at oracle dot com
2009-08-04 16:43 ` paolo dot carlini at oracle dot com
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-08-04 12:55 UTC (permalink / raw)
To: gcc-bugs
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|paolo dot carlini at oracle |unassigned at gcc dot gnu
|dot com |dot org
Status|ASSIGNED |NEW
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35075
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/35075] [4.3/4.4/4.5 regression] ICE with references in templates
2008-02-04 13:26 [Bug c++/35075] New: [4.3 regression] ICE with references in templates reichelt at gcc dot gnu dot org
` (6 preceding siblings ...)
2009-08-04 12:55 ` paolo dot carlini at oracle dot com
@ 2009-08-04 16:43 ` paolo dot carlini at oracle dot com
2009-08-04 16:51 ` paolo dot carlini at oracle dot com
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-08-04 16:43 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from paolo dot carlini at oracle dot com 2009-08-04 16:43 -------
Seems easy to fix now...
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |paolo dot carlini at oracle
|dot org |dot com
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35075
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/35075] [4.3/4.4/4.5 regression] ICE with references in templates
2008-02-04 13:26 [Bug c++/35075] New: [4.3 regression] ICE with references in templates reichelt at gcc dot gnu dot org
` (7 preceding siblings ...)
2009-08-04 16:43 ` paolo dot carlini at oracle dot com
@ 2009-08-04 16:51 ` paolo dot carlini at oracle dot com
2009-11-13 6:02 ` jason at gcc dot gnu dot org
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-08-04 16:51 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from paolo dot carlini at oracle dot com 2009-08-04 16:51 -------
Nope...
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|paolo dot carlini at oracle |unassigned at gcc dot gnu
|dot com |dot org
Status|ASSIGNED |NEW
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35075
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/35075] [4.3/4.4/4.5 regression] ICE with references in templates
2008-02-04 13:26 [Bug c++/35075] New: [4.3 regression] ICE with references in templates reichelt at gcc dot gnu dot org
` (8 preceding siblings ...)
2009-08-04 16:51 ` paolo dot carlini at oracle dot com
@ 2009-11-13 6:02 ` jason at gcc dot gnu dot org
2009-11-13 14:41 ` jason at gcc dot gnu dot org
2009-11-13 14:42 ` jason at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-11-13 6:02 UTC (permalink / raw)
To: gcc-bugs
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jason at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2008-02-04 13:40:05 |2009-11-13 06:01:46
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35075
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/35075] [4.3/4.4/4.5 regression] ICE with references in templates
2008-02-04 13:26 [Bug c++/35075] New: [4.3 regression] ICE with references in templates reichelt at gcc dot gnu dot org
` (9 preceding siblings ...)
2009-11-13 6:02 ` jason at gcc dot gnu dot org
@ 2009-11-13 14:41 ` jason at gcc dot gnu dot org
2009-11-13 14:42 ` jason at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-11-13 14:41 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from jason at gcc dot gnu dot org 2009-11-13 14:41 -------
Subject: Bug 35075
Author: jason
Date: Fri Nov 13 14:40:32 2009
New Revision: 154151
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=154151
Log:
PR c++/35075
* pt.c (convert_nontype_argument): Give helpful error about
reference variable argument to reference template parameter.
Added:
trunk/gcc/testsuite/g++.dg/template/ref5.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35075
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/35075] [4.3/4.4/4.5 regression] ICE with references in templates
2008-02-04 13:26 [Bug c++/35075] New: [4.3 regression] ICE with references in templates reichelt at gcc dot gnu dot org
` (10 preceding siblings ...)
2009-11-13 14:41 ` jason at gcc dot gnu dot org
@ 2009-11-13 14:42 ` jason at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-11-13 14:42 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from jason at gcc dot gnu dot org 2009-11-13 14:42 -------
Fixed for 4.5.
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|4.3.5 |4.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35075
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2009-11-13 14:42 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-04 13:26 [Bug c++/35075] New: [4.3 regression] ICE with references in templates reichelt at gcc dot gnu dot org
2008-02-04 13:27 ` [Bug c++/35075] " reichelt at gcc dot gnu dot org
2008-02-04 13:40 ` [Bug c++/35075] [4.1/4.2/4.3 " rguenth at gcc dot gnu dot org
2008-07-04 22:32 ` [Bug c++/35075] [4.2/4.3/4.4 " jsm28 at gcc dot gnu dot org
2009-02-02 1:58 ` paolo dot carlini at oracle dot com
2009-03-31 20:19 ` [Bug c++/35075] [4.3/4.4/4.5 " jsm28 at gcc dot gnu dot org
2009-08-04 12:38 ` rguenth at gcc dot gnu dot org
2009-08-04 12:55 ` paolo dot carlini at oracle dot com
2009-08-04 16:43 ` paolo dot carlini at oracle dot com
2009-08-04 16:51 ` paolo dot carlini at oracle dot com
2009-11-13 6:02 ` jason at gcc dot gnu dot org
2009-11-13 14:41 ` jason at gcc dot gnu dot org
2009-11-13 14: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).