public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "duz at sol-3 dot de" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/11672] New: ICE on template instantiation in erroneous source. Date: Fri, 25 Jul 2003 14:03:00 -0000 [thread overview] Message-ID: <20030725140322.11672.duz@sol-3.de> (raw) PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11672 Summary: ICE on template instantiation in erroneous source. Product: gcc Version: 3.3 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: duz at sol-3 dot de CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i386-unknown-freebsd4.8 GCC host triplet: i386-unknown-freebsd4.8 GCC target triplet: i386-unknown-freebsd4.8 The following snippet of erroneous source code crashes the gcc-3.3 compiler. I tried on various systems. It seems to crash on x86 and sparc, and to issue the proper error message: bumm.cc: In constructor `A<T>::A() [with T = void]': bumm.cc:9: instantiated from here bumm.cc:6: `void' is not an aggregate type on PowerPC based systems. -------------------------------------- template <class T> class A { int n; public: A() : n (T::foo()) {} }; A<void> a; ------------------------------------- Here is a run on my FreeBSD system. This specific compiler was bootstrapped with BOOT_CFLAGS="-pipe -O2 -fomit-frame-pointer -mpreferred-stack-boundary=2 -march=athlon-tbird" merkur:~/cc/tmp$ gcc -v -S bumm.cc Reading specs from /opt/gnu/bin/../lib/gcc-lib/i386-unknown-freebsd4.8/3.3/specs Configured with: /pub/unpacked/gcc-3.3/configure --prefix=/opt/gnu/gcc-3.3 --disable-shared Thread model: posix gcc version 3.3 /opt/gnu/bin/../lib/gcc-lib/i386-unknown-freebsd4.8/3.3/cc1plus -quiet -v -iprefix /opt/gnu/bin/../lib/gcc-lib/i386-unknown-freebsd4.8/3.3/ -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=0 bumm.cc -D__GNUG__=3 -quiet -dumpbase bumm.cc -auxbase bumm -version -o bumm.s GNU C++ version 3.3 (i386-unknown-freebsd4.8) compiled by GNU C version 3.3. GGC heuristics: --param ggc-min-expand=64 --param ggc-min-heapsize=65137 ignoring nonexistent directory "/opt/gnu/lib/gcc-lib/../../i386-unknown-freebsd4.8/include" ignoring nonexistent directory "/opt/gnu/gcc-3.3/i386-unknown-freebsd4.8/include" ignoring duplicate directory "/opt/gnu/gcc-3.3/include/c++/3.3" ignoring duplicate directory "/opt/gnu/gcc-3.3/include/c++/3.3/i386-unknown-freebsd4.8" ignoring duplicate directory "/opt/gnu/gcc-3.3/include/c++/3.3/backward" ignoring duplicate directory "/opt/gnu/gcc-3.3/lib/gcc-lib/i386-unknown-freebsd4.8/3.3/include" #include "..." search starts here: #include <...> search starts here: /opt/gnu/lib/gcc-lib/../../include/c++/3.3 /opt/gnu/lib/gcc-lib/../../include/c++/3.3/i386-unknown-freebsd4.8 /opt/gnu/lib/gcc-lib/../../include/c++/3.3/backward /opt/gnu/lib/gcc-lib/i386-unknown-freebsd4.8/3.3/include /usr/local/include /opt/gnu/gcc-3.3/include /usr/include End of search list. bumm.cc: In constructor `A<T>::A() [with T = void]': bumm.cc:9: instantiated from here bumm.cc:6: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. merkur:~/cc/tmp$
next reply other threads:[~2003-07-25 14:03 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-07-25 14:03 duz at sol-3 dot de [this message] 2003-07-25 14:15 ` [Bug c++/11672] [3.3 regression] " bangerth at dealii dot org 2003-07-25 14:18 ` pinskia at physics dot uc dot edu 2004-04-21 1:27 ` pinskia at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20030725140322.11672.duz@sol-3.de \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).