public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/21383] New: Crash when finding &a_templated_func<>
@ 2005-05-04 16:07 mahall at ncsa dot uiuc dot edu
  2005-05-04 16:11 ` [Bug c++/21383] " mahall at ncsa dot uiuc dot edu
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: mahall at ncsa dot uiuc dot edu @ 2005-05-04 16:07 UTC (permalink / raw)
  To: gcc-bugs

Crash when finding &a_templated_func<>. I realize that that's not valid
code, so I expected I diagnostic, but I got an ICE instead.

Here's the command line:

panacea> g++ -v -save-temps /tmp/gccbug.cc 
Reading specs from /usr/local/gcc-3.4.3/lib/gcc/i686-pc-linux-gnu/3.4.3/specs
Configured with: ../gcc-3.4.3/configure --prefix=/usr/local/gcc-3.4.3 --enable-l
anguages=c,c++,f77
Thread model: posix
gcc version 3.4.3
 /usr/local/gcc-3.4.3/libexec/gcc/i686-pc-linux-gnu/3.4.3/cc1plus -E -quiet -v -
D_GNU_SOURCE /tmp/gccbug.cc -mtune=pentiumpro -o gccbug.ii
ignoring nonexistent directory "/usr/local/gcc-3.4.3/lib/gcc/i686-pc-linux-gnu/3
.4.3/../../../../i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/gcc-3.4.3/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../include/c++/3.
4.3
 /usr/local/gcc-3.4.3/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../include/c++/3.
4.3/i686-pc-linux-gnu
 /usr/local/gcc-3.4.3/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../include/c++/3.
4.3/backward
 /usr/local/include
 /usr/local/gcc-3.4.3/include
 /usr/local/gcc-3.4.3/lib/gcc/i686-pc-linux-gnu/3.4.3/include
 /usr/include
End of search list.
 /usr/local/gcc-3.4.3/libexec/gcc/i686-pc-linux-gnu/3.4.3/cc1plus -fpreprocessed
 gccbug.ii -quiet -dumpbase gccbug.cc -mtune=pentiumpro -auxbase gccbug -version
 -o gccbug.s
GNU C++ version 3.4.3 (i686-pc-linux-gnu)
        compiled by GNU C version 3.2.3.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
/tmp/gccbug.cc: In function `int main()':
/tmp/gccbug.cc:13: 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.


And here is the preprocessed source code:

# 1 "/tmp/gccbug.cc"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "/tmp/gccbug.cc"
template <class T>
void dummy(T& t)
{}

void anyfunc(int x)
{}

int main()
{
   anyfunc(&dummy<>);
}

-- 
           Summary: Crash when finding &a_templated_func<>
           Product: gcc
           Version: 3.4.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mahall at ncsa dot uiuc dot edu
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21383


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-09-28 16:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-04 16:07 [Bug c++/21383] New: Crash when finding &a_templated_func<> mahall at ncsa dot uiuc dot edu
2005-05-04 16:11 ` [Bug c++/21383] " mahall at ncsa dot uiuc dot edu
2005-05-04 17:03 ` [Bug c++/21383] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-05-19 17:23 ` mmitchel at gcc dot gnu dot org
2005-06-01  0:20 ` pinskia at gcc dot gnu dot org
2005-07-22 21:13 ` pinskia at gcc dot gnu dot org
2005-09-27 15:59 ` mmitchel at gcc dot gnu dot org
2005-09-28 16:28 ` janis187 at us dot ibm dot com

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).