public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/20133] New: internal compiler error: in import_export_decl, at cp/decl2.c:1726
@ 2005-02-22 7:43 jean-marc dot valin at usherbrooke dot ca
2005-02-22 7:44 ` [Bug c++/20133] " jean-marc dot valin at usherbrooke dot ca
` (10 more replies)
0 siblings, 11 replies; 13+ messages in thread
From: jean-marc dot valin at usherbrooke dot ca @ 2005-02-22 7:43 UTC (permalink / raw)
To: gcc-bugs
I'm getting this ICE with the gcc-4.0-20050213 snapshot. This is a
Debian (unstable) machine with a 2.6.10 kernel running on a Pentium M.
% g++ -c net_types.cpp
net_types.cc:179: internal compiler error: in import_export_decl, at
cp/decl2.c:1726
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
--
Summary: internal compiler error: in import_export_decl, at
cp/decl2.c:1726
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P1
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jean-marc dot valin at usherbrooke dot ca
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20133
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/20133] internal compiler error: in import_export_decl, at cp/decl2.c:1726
2005-02-22 7:43 [Bug c++/20133] New: internal compiler error: in import_export_decl, at cp/decl2.c:1726 jean-marc dot valin at usherbrooke dot ca
@ 2005-02-22 7:44 ` jean-marc dot valin at usherbrooke dot ca
2005-02-22 8:41 ` [Bug c++/20133] [4.0 Regression] " pinskia at gcc dot gnu dot org
` (9 subsequent siblings)
10 siblings, 0 replies; 13+ messages in thread
From: jean-marc dot valin at usherbrooke dot ca @ 2005-02-22 7:44 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From jean-marc dot valin at usherbrooke dot ca 2005-02-22 00:10 -------
Created an attachment (id=8248)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8248&action=view)
Preprocessed source
This is the preprocessed source for reproducing the ICE
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20133
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/20133] [4.0 Regression] internal compiler error: in import_export_decl, at cp/decl2.c:1726
2005-02-22 7:43 [Bug c++/20133] New: internal compiler error: in import_export_decl, at cp/decl2.c:1726 jean-marc dot valin at usherbrooke dot ca
2005-02-22 7:44 ` [Bug c++/20133] " jean-marc dot valin at usherbrooke dot ca
@ 2005-02-22 8:41 ` pinskia at gcc dot gnu dot org
2005-02-22 8:48 ` pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
10 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-22 8:41 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-02-22 00:30 -------
Confirmed reduced to:
template <class T>
class ObjectPool {
static int mutex;
};
template<class> int ObjectPool<char>::mutex;
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |ice-on-valid-code
Last reconfirmed|0000-00-00 00:00:00 |2005-02-22 00:30:53
date| |
Summary|internal compiler error: in |[4.0 Regression] internal
|import_export_decl, at |compiler error: in
|cp/decl2.c:1726 |import_export_decl, at
| |cp/decl2.c:1726
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20133
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/20133] [4.0 Regression] internal compiler error: in import_export_decl, at cp/decl2.c:1726
2005-02-22 7:43 [Bug c++/20133] New: internal compiler error: in import_export_decl, at cp/decl2.c:1726 jean-marc dot valin at usherbrooke dot ca
2005-02-22 7:44 ` [Bug c++/20133] " jean-marc dot valin at usherbrooke dot ca
2005-02-22 8:41 ` [Bug c++/20133] [4.0 Regression] " pinskia at gcc dot gnu dot org
@ 2005-02-22 8:48 ` pinskia at gcc dot gnu dot org
2005-02-22 14:01 ` jean-marc dot valin at usherbrooke dot ca
` (7 subsequent siblings)
10 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-22 8:48 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-02-22 00:32 -------
This code is invalid, the correct way is to deal these static variables is like:
template <class T>
class ObjectPool {
static int mutex;
};
template<> int ObjectPool<char>::mutex;
which does not ICE.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords|ice-on-valid-code |ice-on-invalid-code
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20133
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/20133] [4.0 Regression] internal compiler error: in import_export_decl, at cp/decl2.c:1726
2005-02-22 7:43 [Bug c++/20133] New: internal compiler error: in import_export_decl, at cp/decl2.c:1726 jean-marc dot valin at usherbrooke dot ca
` (2 preceding siblings ...)
2005-02-22 8:48 ` pinskia at gcc dot gnu dot org
@ 2005-02-22 14:01 ` jean-marc dot valin at usherbrooke dot ca
2005-02-23 10:24 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
10 siblings, 0 replies; 13+ messages in thread
From: jean-marc dot valin at usherbrooke dot ca @ 2005-02-22 14:01 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From jean-marc dot valin at usherbrooke dot ca 2005-02-22 07:17 -------
I changed the code, but I'm now getting unresolved symbols at link:
batchflow.o(.gnu.linkonce.t._ZN12batchflowApp10initializeEiPPc+0x5a): In
function `batchflowApp::initialize(int, char**)':
: undefined reference to `ObjectPool<NetCType<int> >::stack'
and so on for all the lines I changed.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20133
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/20133] [4.0 Regression] internal compiler error: in import_export_decl, at cp/decl2.c:1726
2005-02-22 7:43 [Bug c++/20133] New: internal compiler error: in import_export_decl, at cp/decl2.c:1726 jean-marc dot valin at usherbrooke dot ca
` (3 preceding siblings ...)
2005-02-22 14:01 ` jean-marc dot valin at usherbrooke dot ca
@ 2005-02-23 10:24 ` pinskia at gcc dot gnu dot org
2005-03-23 16:23 ` [Bug c++/20133] [4.0/4.1 " nathan at gcc dot gnu dot org
` (5 subsequent siblings)
10 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-23 10:24 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-02-22 23:55 -------
: Search converges between 2004-07-29-trunk (#498) and 2004-07-30-trunk (#499).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20133
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/20133] [4.0/4.1 Regression] internal compiler error: in import_export_decl, at cp/decl2.c:1726
2005-02-22 7:43 [Bug c++/20133] New: internal compiler error: in import_export_decl, at cp/decl2.c:1726 jean-marc dot valin at usherbrooke dot ca
` (4 preceding siblings ...)
2005-02-23 10:24 ` pinskia at gcc dot gnu dot org
@ 2005-03-23 16:23 ` nathan at gcc dot gnu dot org
2005-04-12 23:16 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
10 siblings, 0 replies; 13+ messages in thread
From: nathan at gcc dot gnu dot org @ 2005-03-23 16:23 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |nathan at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2005-02-22 00:30:53 |2005-03-23 16:23:41
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20133
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/20133] [4.0/4.1 Regression] internal compiler error: in import_export_decl, at cp/decl2.c:1726
2005-02-22 7:43 [Bug c++/20133] New: internal compiler error: in import_export_decl, at cp/decl2.c:1726 jean-marc dot valin at usherbrooke dot ca
` (5 preceding siblings ...)
2005-03-23 16:23 ` [Bug c++/20133] [4.0/4.1 " nathan at gcc dot gnu dot org
@ 2005-04-12 23:16 ` pinskia at gcc dot gnu dot org
2005-04-21 5:02 ` mmitchel at gcc dot gnu dot org
` (3 subsequent siblings)
10 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-12 23:16 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-12 23:16 -------
*** Bug 20981 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20133
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/20133] [4.0/4.1 Regression] internal compiler error: in import_export_decl, at cp/decl2.c:1726
2005-02-22 7:43 [Bug c++/20133] New: internal compiler error: in import_export_decl, at cp/decl2.c:1726 jean-marc dot valin at usherbrooke dot ca
` (6 preceding siblings ...)
2005-04-12 23:16 ` pinskia at gcc dot gnu dot org
@ 2005-04-21 5:02 ` mmitchel at gcc dot gnu dot org
2005-07-08 1:41 ` mmitchel at gcc dot gnu dot org
` (2 subsequent siblings)
10 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-04-21 5:02 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.0.0 |4.0.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20133
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/20133] [4.0/4.1 Regression] internal compiler error: in import_export_decl, at cp/decl2.c:1726
2005-02-22 7:43 [Bug c++/20133] New: internal compiler error: in import_export_decl, at cp/decl2.c:1726 jean-marc dot valin at usherbrooke dot ca
` (7 preceding siblings ...)
2005-04-21 5:02 ` mmitchel at gcc dot gnu dot org
@ 2005-07-08 1:41 ` mmitchel at gcc dot gnu dot org
2005-07-11 16:25 ` reichelt at gcc dot gnu dot org
2005-09-27 16:21 ` mmitchel at gcc dot gnu dot org
10 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-07-08 1:41 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.0.1 |4.0.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20133
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/20133] [4.0/4.1 Regression] internal compiler error: in import_export_decl, at cp/decl2.c:1726
2005-02-22 7:43 [Bug c++/20133] New: internal compiler error: in import_export_decl, at cp/decl2.c:1726 jean-marc dot valin at usherbrooke dot ca
` (8 preceding siblings ...)
2005-07-08 1:41 ` mmitchel at gcc dot gnu dot org
@ 2005-07-11 16:25 ` reichelt at gcc dot gnu dot org
2005-09-27 16:21 ` mmitchel at gcc dot gnu dot org
10 siblings, 0 replies; 13+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-07-11 16:25 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2005-07-11 16:15 -------
It doesn't link because of [templ.expl.spec]:
An explicit specialization of a static data member of a template is a
definition if the declaration includes an initializer; otherwise, it
is a declaration. [Note: there is no syntax for the definition of a
static data member of a template that requires default initialization.
template<> X Q<int>::x;
This is a declaration regardless of whether X can be default initial-
ized (_dcl.init_). ]
You must provide the initializer, e.g.
template<> int ObjectPool<char>::mutex = 0;
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Keywords| |monitored
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20133
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/20133] [4.0/4.1 Regression] internal compiler error: in import_export_decl, at cp/decl2.c:1726
2005-02-22 7:43 [Bug c++/20133] New: internal compiler error: in import_export_decl, at cp/decl2.c:1726 jean-marc dot valin at usherbrooke dot ca
` (9 preceding siblings ...)
2005-07-11 16:25 ` reichelt at gcc dot gnu dot org
@ 2005-09-27 16:21 ` mmitchel at gcc dot gnu dot org
10 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-09-27 16:21 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.0.2 |4.0.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20133
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/20133] [4.0/4.1 Regression] internal compiler error: in import_export_decl, at cp/decl2.c:1726
[not found] <bug-20133-8625@http.gcc.gnu.org/bugzilla/>
@ 2005-10-31 2:46 ` mmitchel at gcc dot gnu dot org
0 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-10-31 2:46 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from mmitchel at gcc dot gnu dot org 2005-10-31 02:46 -------
Downgraded to P2; it would be good to fix this, but it's not valid code, so
it's not a showstopper.
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P1 |P2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20133
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2005-10-31 2:46 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-22 7:43 [Bug c++/20133] New: internal compiler error: in import_export_decl, at cp/decl2.c:1726 jean-marc dot valin at usherbrooke dot ca
2005-02-22 7:44 ` [Bug c++/20133] " jean-marc dot valin at usherbrooke dot ca
2005-02-22 8:41 ` [Bug c++/20133] [4.0 Regression] " pinskia at gcc dot gnu dot org
2005-02-22 8:48 ` pinskia at gcc dot gnu dot org
2005-02-22 14:01 ` jean-marc dot valin at usherbrooke dot ca
2005-02-23 10:24 ` pinskia at gcc dot gnu dot org
2005-03-23 16:23 ` [Bug c++/20133] [4.0/4.1 " nathan at gcc dot gnu dot org
2005-04-12 23:16 ` pinskia at gcc dot gnu dot org
2005-04-21 5:02 ` mmitchel at gcc dot gnu dot org
2005-07-08 1:41 ` mmitchel at gcc dot gnu dot org
2005-07-11 16:25 ` reichelt at gcc dot gnu dot org
2005-09-27 16:21 ` mmitchel at gcc dot gnu dot org
[not found] <bug-20133-8625@http.gcc.gnu.org/bugzilla/>
2005-10-31 2:46 ` mmitchel 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).