public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/34447] New: internal compiler error: in import_export_decl, at cp/decl2.c:1715
@ 2007-12-12 20:58 keelar at gmail dot com
2007-12-12 21:02 ` [Bug c++/34447] " rguenth at gcc dot gnu dot org
2007-12-12 23:25 ` pinskia at gcc dot gnu dot org
0 siblings, 2 replies; 3+ messages in thread
From: keelar at gmail dot com @ 2007-12-12 20:58 UTC (permalink / raw)
To: gcc-bugs
My Header file Interface.h has the following piece of code
template <class T>
class Interface {
...
protected:
static const std::string cConfItem;
};
typedef Interface<FileXfer::iFileXfer> InterfaceFileXfer;
============================================
In my source file Interface.cxx
I have the following:
const string InterfaceFileXfer::cConfItem = "Handler.FileXferH";
The above gets compiled without any errors on Sun Studio11.
But I get the following error when I compile using gcc (gcc-4.1.3-29 openSUSE
10.2)
Interface.cxx:31: error: too few template-parameter-lists
I don't know how should be the initialization for cConfItem like...
So I tried the following:
template <class T> const string Interface<FileXfer::iFileXfer>::cConfItem =
"Handler.FileXferH";
But I got the following error:
internal compiler error: in import_export_decl, at cp/decl2.c:1715
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.opensuse.org> for instructions.
make: *** [Interface.o] Error 1
--
Summary: internal compiler error: in import_export_decl, at
cp/decl2.c:1715
Product: gcc
Version: 4.1.3
Status: UNCONFIRMED
Severity: blocker
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: keelar at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34447
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/34447] internal compiler error: in import_export_decl, at cp/decl2.c:1715
2007-12-12 20:58 [Bug c++/34447] New: internal compiler error: in import_export_decl, at cp/decl2.c:1715 keelar at gmail dot com
@ 2007-12-12 21:02 ` rguenth at gcc dot gnu dot org
2007-12-12 23:25 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-12-12 21:02 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from rguenth at gcc dot gnu dot org 2007-12-12 21:02 -------
Please provide a compilable testcase.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34447
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/34447] internal compiler error: in import_export_decl, at cp/decl2.c:1715
2007-12-12 20:58 [Bug c++/34447] New: internal compiler error: in import_export_decl, at cp/decl2.c:1715 keelar at gmail dot com
2007-12-12 21:02 ` [Bug c++/34447] " rguenth at gcc dot gnu dot org
@ 2007-12-12 23:25 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-12-12 23:25 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2007-12-12 23:24 -------
>template <class T> const string Interface<FileXfer::iFileXfer>::cConfItem =
"Handler.FileXferH";
The above code is incorrect and it should be:
template <> const string Interface<FileXfer::iFileXfer>::cConfItem =
"Handler.FileXferH";
And that removes the ICE. This is also fixed on the trunk for 4.3.0.
*** This bug has been marked as a duplicate of 24791 ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34447
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-12-12 23:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-12 20:58 [Bug c++/34447] New: internal compiler error: in import_export_decl, at cp/decl2.c:1715 keelar at gmail dot com
2007-12-12 21:02 ` [Bug c++/34447] " rguenth at gcc dot gnu dot org
2007-12-12 23:25 ` pinskia 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).