public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/27422]  New: [4.0/4.1/4.2 regression] ICE with invalid function argument
@ 2006-05-04 15:12 reichelt at gcc dot gnu dot org
  2006-05-04 15:27 ` [Bug c++/27422] " pinskia at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-05-04 15:12 UTC (permalink / raw)
  To: gcc-bugs

The C++ frontend ICEs on the following invalid code snippet since GCC 3.0:

==============================
void foo(void i);
void bar() { foo(0); }
==============================

bug.cc:1: error: 'i' has incomplete type
bug.cc:1: error: invalid use of 'void'
bug.cc: In function 'void bar()':
bug.cc:2: internal compiler error: tree check: expected class 'type', have
'exceptional' (error_mark) in convert_arguments, at cp/typeck.c:2749
Please submit a full bug report, [etc.]


-- 
           Summary: [4.0/4.1/4.2 regression] ICE with invalid function
                    argument
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery, monitored
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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


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

* [Bug c++/27422] [4.0/4.1/4.2 regression] ICE with invalid function argument
  2006-05-04 15:12 [Bug c++/27422] New: [4.0/4.1/4.2 regression] ICE with invalid function argument reichelt at gcc dot gnu dot org
@ 2006-05-04 15:27 ` pinskia at gcc dot gnu dot org
  2006-05-04 20:06 ` reichelt at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-05-04 15:27 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.0.4


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


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

* [Bug c++/27422] [4.0/4.1/4.2 regression] ICE with invalid function argument
  2006-05-04 15:12 [Bug c++/27422] New: [4.0/4.1/4.2 regression] ICE with invalid function argument reichelt at gcc dot gnu dot org
  2006-05-04 15:27 ` [Bug c++/27422] " pinskia at gcc dot gnu dot org
@ 2006-05-04 20:06 ` reichelt at gcc dot gnu dot org
  2006-05-04 21:31 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-05-04 20:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from reichelt at gcc dot gnu dot org  2006-05-04 20:05 -------
Testing a patch.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |reichelt at gcc dot gnu dot
                   |dot org                     |org


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


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

* [Bug c++/27422] [4.0/4.1/4.2 regression] ICE with invalid function argument
  2006-05-04 15:12 [Bug c++/27422] New: [4.0/4.1/4.2 regression] ICE with invalid function argument reichelt at gcc dot gnu dot org
  2006-05-04 15:27 ` [Bug c++/27422] " pinskia at gcc dot gnu dot org
  2006-05-04 20:06 ` reichelt at gcc dot gnu dot org
@ 2006-05-04 21:31 ` pinskia at gcc dot gnu dot org
  2006-05-05 20:04 ` patchapp at dberlin dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-05-04 21:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2006-05-04 21:31 -------
Confirmed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-05-04 21:31:53
               date|                            |


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


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

* [Bug c++/27422] [4.0/4.1/4.2 regression] ICE with invalid function argument
  2006-05-04 15:12 [Bug c++/27422] New: [4.0/4.1/4.2 regression] ICE with invalid function argument reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-05-04 21:31 ` pinskia at gcc dot gnu dot org
@ 2006-05-05 20:04 ` patchapp at dberlin dot org
  2006-05-06  0:20 ` reichelt at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: patchapp at dberlin dot org @ 2006-05-05 20:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from patchapp at dberlin dot org  2006-05-05 20:04 -------
Subject: Bug number PR c++/27422

A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-05/msg00205.html


-- 


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


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

* [Bug c++/27422] [4.0/4.1/4.2 regression] ICE with invalid function argument
  2006-05-04 15:12 [Bug c++/27422] New: [4.0/4.1/4.2 regression] ICE with invalid function argument reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2006-05-05 20:04 ` patchapp at dberlin dot org
@ 2006-05-06  0:20 ` reichelt at gcc dot gnu dot org
  2006-05-06  0:24 ` reichelt at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-05-06  0:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from reichelt at gcc dot gnu dot org  2006-05-06 00:20 -------
Subject: Bug 27422

Author: reichelt
Date: Sat May  6 00:19:40 2006
New Revision: 113568

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113568
Log:
        PR c++/27422
        * typeck.c (convert_arguments): Return early on args with
        invalid types.

        * g++.dg/conversion/void1.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/conversion/void1.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/typeck.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/27422] [4.0/4.1/4.2 regression] ICE with invalid function argument
  2006-05-04 15:12 [Bug c++/27422] New: [4.0/4.1/4.2 regression] ICE with invalid function argument reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2006-05-06  0:20 ` reichelt at gcc dot gnu dot org
@ 2006-05-06  0:24 ` reichelt at gcc dot gnu dot org
  2006-05-06  0:27 ` reichelt at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-05-06  0:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from reichelt at gcc dot gnu dot org  2006-05-06 00:23 -------
Subject: Bug 27422

Author: reichelt
Date: Sat May  6 00:23:51 2006
New Revision: 113569

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113569
Log:
        PR c++/27422
        * typeck.c (convert_arguments): Return early on args with
        invalid types.

        * g++.dg/conversion/void1.C: New test.

Added:
    branches/gcc-4_1-branch/gcc/testsuite/g++.dg/conversion/void1.C
Modified:
    branches/gcc-4_1-branch/gcc/cp/ChangeLog
    branches/gcc-4_1-branch/gcc/cp/typeck.c
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/27422] [4.0/4.1/4.2 regression] ICE with invalid function argument
  2006-05-04 15:12 [Bug c++/27422] New: [4.0/4.1/4.2 regression] ICE with invalid function argument reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2006-05-06  0:24 ` reichelt at gcc dot gnu dot org
@ 2006-05-06  0:27 ` reichelt at gcc dot gnu dot org
  2006-05-06  0:35 ` reichelt at gcc dot gnu dot org
  2006-05-15 19:34 ` patchapp at dberlin dot org
  8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-05-06  0:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from reichelt at gcc dot gnu dot org  2006-05-06 00:27 -------
Subject: Bug 27422

Author: reichelt
Date: Sat May  6 00:26:58 2006
New Revision: 113570

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113570
Log:
        PR c++/27422
        * typeck.c (convert_arguments): Return early on args with
        invalid types.

        * g++.dg/conversion/void1.C: New test.

Added:
    branches/gcc-4_0-branch/gcc/testsuite/g++.dg/conversion/void1.C
Modified:
    branches/gcc-4_0-branch/gcc/cp/ChangeLog
    branches/gcc-4_0-branch/gcc/cp/typeck.c
    branches/gcc-4_0-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/27422] [4.0/4.1/4.2 regression] ICE with invalid function argument
  2006-05-04 15:12 [Bug c++/27422] New: [4.0/4.1/4.2 regression] ICE with invalid function argument reichelt at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2006-05-06  0:27 ` reichelt at gcc dot gnu dot org
@ 2006-05-06  0:35 ` reichelt at gcc dot gnu dot org
  2006-05-15 19:34 ` patchapp at dberlin dot org
  8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-05-06  0:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from reichelt at gcc dot gnu dot org  2006-05-06 00:35 -------
Fixed on mainline, 4.1 branch, and 4.0 branch.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

* [Bug c++/27422] [4.0/4.1/4.2 regression] ICE with invalid function argument
  2006-05-04 15:12 [Bug c++/27422] New: [4.0/4.1/4.2 regression] ICE with invalid function argument reichelt at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2006-05-06  0:35 ` reichelt at gcc dot gnu dot org
@ 2006-05-15 19:34 ` patchapp at dberlin dot org
  8 siblings, 0 replies; 10+ messages in thread
From: patchapp at dberlin dot org @ 2006-05-15 19:34 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from patchapp at dberlin dot org  2006-05-15 19:33 -------
Subject: Bug number PR c++/27422

A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-05/msg00205.html


-- 


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


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

end of thread, other threads:[~2006-05-15 19:34 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-04 15:12 [Bug c++/27422] New: [4.0/4.1/4.2 regression] ICE with invalid function argument reichelt at gcc dot gnu dot org
2006-05-04 15:27 ` [Bug c++/27422] " pinskia at gcc dot gnu dot org
2006-05-04 20:06 ` reichelt at gcc dot gnu dot org
2006-05-04 21:31 ` pinskia at gcc dot gnu dot org
2006-05-05 20:04 ` patchapp at dberlin dot org
2006-05-06  0:20 ` reichelt at gcc dot gnu dot org
2006-05-06  0:24 ` reichelt at gcc dot gnu dot org
2006-05-06  0:27 ` reichelt at gcc dot gnu dot org
2006-05-06  0:35 ` reichelt at gcc dot gnu dot org
2006-05-15 19:34 ` patchapp at dberlin 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).