public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/13618] New: 'internal compiler error: in c_expand_expr, at c-common.c' when printing a compile error
@ 2004-01-08 21:29 youkai at earthlink dot net
2004-01-08 21:36 ` [Bug c++/13618] " youkai at earthlink dot net
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: youkai at earthlink dot net @ 2004-01-08 21:29 UTC (permalink / raw)
To: gcc-bugs
When compiling a small program involving a fair amount of template processing,
gcc aborts with 'internal compiler error' when trying to print out a
programming error:
CacheTemplate.cpp: In member function `Value& Cache<Key, Value, MissHandler,
ReplacementPolicy>::get(const Key&) [with Key = int, Value = char,
MissHandler = CharMaker, ReplacementPolicy = TestReplacementPolicy]':
test.cpp:36: instantiated from here
CacheTemplate.cpp:12: internal compiler error: in c_expand_expr, at c-common.c:
4341
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
I will include the preprocessed source, as soon as I can figure out where to
upload it.
--
Summary: 'internal compiler error: in c_expand_expr, at c-
common.c' when printing a compile error
Product: gcc
Version: 3.3.1
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: youkai at earthlink dot net
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13618
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/13618] 'internal compiler error: in c_expand_expr, at c-common.c' when printing a compile error
2004-01-08 21:29 [Bug c++/13618] New: 'internal compiler error: in c_expand_expr, at c-common.c' when printing a compile error youkai at earthlink dot net
@ 2004-01-08 21:36 ` youkai at earthlink dot net
2004-01-08 21:38 ` youkai at earthlink dot net
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: youkai at earthlink dot net @ 2004-01-08 21:36 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From youkai at earthlink dot net 2004-01-08 21:36 -------
Created an attachment (id=5436)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5436&action=view)
gzipped, preprocessed source to reproduce
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13618
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/13618] 'internal compiler error: in c_expand_expr, at c-common.c' when printing a compile error
2004-01-08 21:29 [Bug c++/13618] New: 'internal compiler error: in c_expand_expr, at c-common.c' when printing a compile error youkai at earthlink dot net
2004-01-08 21:36 ` [Bug c++/13618] " youkai at earthlink dot net
@ 2004-01-08 21:38 ` youkai at earthlink dot net
2004-01-08 23:05 ` bangerth at dealii dot org
2004-01-08 23:19 ` bangerth at dealii dot org
3 siblings, 0 replies; 5+ messages in thread
From: youkai at earthlink dot net @ 2004-01-08 21:38 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From youkai at earthlink dot net 2004-01-08 21:38 -------
Adding all the releveant information about environment.
Platform:
Windows XP Professional, SP1, running the Cygwin toolset.
FULL TRANSCRIPT OF SESSION:
g++ -v -save-temps -c -o test.o test.cpp
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/specs
Configured with: /netrel/src/gcc-3.3.1-2/configure --enable-
languages=c,c++,f77,java --enable-libgcj --enable-threads=posix --with-system-
zlib --enable-nls --without-included-gettext --enable-interpreter --enable-
sjlj-exceptions --disable-version-specific-runtime-libs --enable-shared --
build=i686-pc-linux --host=i686-pc-cygwin --target=i686-pc-cygwin --
prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --
includedir=/nonexistent/include --libexecdir=/usr/sbin
Thread model: posix
gcc version 3.3.1 (cygming special)
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/cc1plus.exe -E -D__GNUG__=3 -quiet -v -
D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=1 -D__CYGWIN32__ -
D__CYGWIN__ -Dunix -D__unix__ -D__unix -idirafter /usr/lib/gcc-lib/i686-pc-
cygwin/3.3.1/../../../../include/w32api -idirafter /usr/lib/gcc-lib/i686-pc-
cygwin/3.3.1/../../../../i686-pc-cygwin/lib/../../include/w32api test.cpp
test.ii
ignoring nonexistent directory "/usr/i686-pc-cygwin/include"
ignoring duplicate directory "/usr/i686-pc-cygwin/lib/../../include/w32api"
#include "..." search starts here:
#include <...> search starts here:
/usr/include/c++/3.3.1
/usr/include/c++/3.3.1/i686-pc-cygwin
/usr/include/c++/3.3.1/backward
/usr/local/include
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/include
/usr/include
/usr/include/w32api
End of search list.
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/cc1plus.exe -fpreprocessed test.ii -
quiet -dumpbase test.cpp -auxbase-strip test.o -version -o test.s
GNU C++ version 3.3.1 (cygming special) (i686-pc-cygwin)
compiled by GNU C version 3.3.1 (cygming special).
GGC heuristics: --param ggc-min-expand=99 --param ggc-min-heapsize=131005
CacheTemplate.cpp: In member function `Value& Cache<Key, Value, MissHandler,
ReplacementPolicy>::get(const Key&) [with Key = int, Value = char,
MissHandler = CharMaker, ReplacementPolicy = TestReplacementPolicy]':
test.cpp:36: instantiated from here
CacheTemplate.cpp:12: internal compiler error: in c_expand_expr, at c-common.c:
4341
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13618
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/13618] 'internal compiler error: in c_expand_expr, at c-common.c' when printing a compile error
2004-01-08 21:29 [Bug c++/13618] New: 'internal compiler error: in c_expand_expr, at c-common.c' when printing a compile error youkai at earthlink dot net
2004-01-08 21:36 ` [Bug c++/13618] " youkai at earthlink dot net
2004-01-08 21:38 ` youkai at earthlink dot net
@ 2004-01-08 23:05 ` bangerth at dealii dot org
2004-01-08 23:19 ` bangerth at dealii dot org
3 siblings, 0 replies; 5+ messages in thread
From: bangerth at dealii dot org @ 2004-01-08 23:05 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bangerth at dealii dot org 2004-01-08 23:05 -------
The code is illegal, because you have something like this:
EntryType(_missHandler(1),
ReplacementPolicy::EntryMetadata).first;
where the second argument to EntryType is here a type, but should be
a value. Nevertheless, this is of course an error in gcc, and I'm trying
to reduce it.
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13618
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/13618] 'internal compiler error: in c_expand_expr, at c-common.c' when printing a compile error
2004-01-08 21:29 [Bug c++/13618] New: 'internal compiler error: in c_expand_expr, at c-common.c' when printing a compile error youkai at earthlink dot net
` (2 preceding siblings ...)
2004-01-08 23:05 ` bangerth at dealii dot org
@ 2004-01-08 23:19 ` bangerth at dealii dot org
3 siblings, 0 replies; 5+ messages in thread
From: bangerth at dealii dot org @ 2004-01-08 23:19 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bangerth at dealii dot org 2004-01-08 23:19 -------
Actually, there was also a "typename" missing. Well, be that as it
may, here's a small snippet:
---------------------
struct S {
S(int, int);
};
struct TestT
{
typedef int I;
};
template <typename T>
void get()
{
S s(1, T::I);
}
template void get<TestT> ();
----------------------------
This crashed everything between 2.95 and present 3.3.x with
g/x> /home/bangerth/bin/gcc-3.3.3-pre/bin/c++ -c x.cc
x.cc: In function `void get() [with T = TestT]':
x.cc:16: instantiated from here
x.cc:13: internal compiler error: in c_expand_expr, at c-common.c:4341
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
It's fixed on mainline, though, so no action requires anymore.
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |3.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13618
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-01-08 23:19 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-08 21:29 [Bug c++/13618] New: 'internal compiler error: in c_expand_expr, at c-common.c' when printing a compile error youkai at earthlink dot net
2004-01-08 21:36 ` [Bug c++/13618] " youkai at earthlink dot net
2004-01-08 21:38 ` youkai at earthlink dot net
2004-01-08 23:05 ` bangerth at dealii dot org
2004-01-08 23:19 ` bangerth at dealii 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).