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

* [Bug c++/21383] Crash when finding &a_templated_func<>
  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 ` 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
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: mahall at ncsa dot uiuc dot edu @ 2005-05-04 16:11 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mahall at ncsa dot uiuc dot edu  2005-05-04 16:11 -------
Oh - the address_of operator is not necessary - the crash occurs if we use just
anyfunc(dummy<>);

-matt

-- 


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


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

* [Bug c++/21383] [3.4/4.0/4.1 Regression] Crash when finding &a_templated_func<>
  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 ` pinskia at gcc dot gnu dot org
  2005-05-19 17:23 ` mmitchel at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-04 17:03 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-04 17:02 -------
Confirmed, here is the backtrace:
#0  arg_assoc_args (k=0xbff447d4, args=0xb7c68f30) at /home/peshtigo/pinskia/src/gnu/gcc/src/
gcc/cp/name-lookup.c:4434
#1  0x08151dfa in lookup_arg_dependent (name=0xb7c8b23c, fns=0xb7c8c654, args=0xb7c68f30)
    at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/cp/name-lookup.c:4484
#2  0x08131d50 in perform_koenig_lookup (fn=0xff, args=0xb7c68f30)
    at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/cp/semantics.c:1711
#3  0x080ef88e in cp_parser_unary_expression (parser=0xb7c8b2a4, address_p=0 '\0', cast_p=0 '\0')
    at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:4108
#4  0x080f01f2 in cp_parser_assignment_expression (parser=0xb7c8b2a4, cast_p=0 '\0')
    at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:5413
#5  0x080f1999 in cp_parser_expression (parser=0xb7c8b2a4, cast_p=Variable "cast_p" is not 
available.
)
    at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:5717

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-invalid-code
      Known to fail|                            |3.4.0 4.0.0 4.1.0
      Known to work|                            |3.3.3
   Last reconfirmed|0000-00-00 00:00:00         |2005-05-04 17:02:56
               date|                            |
            Summary|Crash when finding          |[3.4/4.0/4.1 Regression]
                   |&a_templated_func<>         |Crash when finding
                   |                            |&a_templated_func<>
   Target Milestone|---                         |3.4.4


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


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

* [Bug c++/21383] [3.4/4.0/4.1 Regression] Crash when finding &a_templated_func<>
  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
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-05-19 17:23 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4.4                       |3.4.5


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


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

* [Bug c++/21383] [3.4/4.0/4.1 Regression] Crash when finding &a_templated_func<>
  2005-05-04 16:07 [Bug c++/21383] New: Crash when finding &a_templated_func<> mahall at ncsa dot uiuc dot edu
                   ` (2 preceding siblings ...)
  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
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-01  0:20 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-01 00:20 -------
: Search converges between 2003-08-10-trunk (#319) and 2003-08-11-trunk (#320).

-- 


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


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

* [Bug c++/21383] [3.4/4.0/4.1 Regression] Crash when finding &a_templated_func<>
  2005-05-04 16:07 [Bug c++/21383] New: Crash when finding &a_templated_func<> mahall at ncsa dot uiuc dot edu
                   ` (3 preceding siblings ...)
  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
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-22 21:13 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-22 21:12 -------
Moving to 4.0.2 pre Mark.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4.5                       |4.0.2


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


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

* [Bug c++/21383] [3.4/4.0/4.1 Regression] Crash when finding &a_templated_func<>
  2005-05-04 16:07 [Bug c++/21383] New: Crash when finding &a_templated_func<> mahall at ncsa dot uiuc dot edu
                   ` (4 preceding siblings ...)
  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
  6 siblings, 0 replies; 8+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-09-27 15:59 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.0.2                       |4.0.3


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


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

* [Bug c++/21383] [3.4/4.0/4.1 Regression] Crash when finding &a_templated_func<>
  2005-05-04 16:07 [Bug c++/21383] New: Crash when finding &a_templated_func<> mahall at ncsa dot uiuc dot edu
                   ` (5 preceding siblings ...)
  2005-09-27 15:59 ` mmitchel at gcc dot gnu dot org
@ 2005-09-28 16:28 ` janis187 at us dot ibm dot com
  6 siblings, 0 replies; 8+ messages in thread
From: janis187 at us dot ibm dot com @ 2005-09-28 16:28 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From janis187 at us dot ibm dot com  2005-09-28 16:28 -------
A regression hunt identified this patch from nathan:

  http://gcc.gnu.org/ml/gcc-cvs/2003-08/msg00349.html

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nathan at gcc dot gnu dot
                   |                            |org


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