This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13895] New: Internal compiler error in regenerate_decl_from_template
- From: "heinlein at informatik dot uni-ulm dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Jan 2004 13:21:59 -0000
- Subject: [Bug c++/13895] New: Internal compiler error in regenerate_decl_from_template
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
ixtys$ uname -a
Linux ixtys 2.2.18 #1 Fri Jan 19 22:10:35 GMT 2001 i686 unknown
ixtys$ g++ -v
Reading specs from
/home/heinlein/soft/GCC/3.2/lib/gcc-lib/i686-pc-linux-gnu/3.2/specs
Configured with: ../gcc-3.2/configure --prefix=/home/heinlein/soft/GCC/3.2
Thread model: posix
gcc version 3.2
ixtys$ g++ -c -save-temps bug.cxx
bug.cxx: In instantiation of `int f()':
bug.cxx:9: instantiated from here
bug.cxx:5: Internal compiler error in regenerate_decl_from_template, at cp/pt.c
:9825
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
ixtys$ cat bug.ii
# 1 "bug.cxx"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "bug.cxx"
int f ();
template <int>
struct X {
friend int f () { return 1; }
};
X<1> x;
int i = f();
Note: If the declaration "int f ();" is removed, the error disappears.
--
Summary: Internal compiler error in regenerate_decl_from_template
Product: gcc
Version: 3.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: heinlein at informatik dot uni-ulm dot de
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13895