public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/43384] [4.3/4.4/4.5/4.6 Regression] ICE: Segmentation fault with invalid K&R-like code
       [not found] <bug-43384-4@http.gcc.gnu.org/bugzilla/>
@ 2010-10-31  7:57 ` simartin at gcc dot gnu.org
  2010-11-06 21:59 ` simartin at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 9+ messages in thread
From: simartin at gcc dot gnu.org @ 2010-10-31  7:57 UTC (permalink / raw)
  To: gcc-bugs

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

Simon Martin <simartin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |simartin at gcc dot gnu.org
      Known to work|                            |
      Known to fail|                            |

--- Comment #5 from Simon Martin <simartin at gcc dot gnu.org> 2010-10-31 07:56:47 UTC ---
Patch proposed here:
  http://gcc.gnu.org/ml/gcc-patches/2010-10/msg02657.html


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

* [Bug c/43384] [4.3/4.4/4.5/4.6 Regression] ICE: Segmentation fault with invalid K&R-like code
       [not found] <bug-43384-4@http.gcc.gnu.org/bugzilla/>
  2010-10-31  7:57 ` [Bug c/43384] [4.3/4.4/4.5/4.6 Regression] ICE: Segmentation fault with invalid K&R-like code simartin at gcc dot gnu.org
@ 2010-11-06 21:59 ` simartin at gcc dot gnu.org
  2010-11-06 22:07 ` [Bug c/43384] [4.3/4.4/4.5 " simartin at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 9+ messages in thread
From: simartin at gcc dot gnu.org @ 2010-11-06 21:59 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Simon Martin <simartin at gcc dot gnu.org> 2010-11-06 21:58:53 UTC ---
Author: simartin
Date: Sat Nov  6 21:58:50 2010
New Revision: 166408

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166408
Log:
gcc/

2010-11-16  Simon Martin  <simartin@users.sourceforge.net>

    PR c/43384
    * c-decl.c (lookup_label): Labels can only be referenced in a
    function's scope. 
    (store_parm_decls_oldstyle): Skip erroneous parameters.

gcc/testsuite/

2010-11-16  Simon Martin  <simartin@users.sourceforge.net>

    PR c/43384
    * gcc.dg/parser-error-3.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/parse-error-3.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-decl.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug c/43384] [4.3/4.4/4.5 Regression] ICE: Segmentation fault with invalid K&R-like code
       [not found] <bug-43384-4@http.gcc.gnu.org/bugzilla/>
  2010-10-31  7:57 ` [Bug c/43384] [4.3/4.4/4.5/4.6 Regression] ICE: Segmentation fault with invalid K&R-like code simartin at gcc dot gnu.org
  2010-11-06 21:59 ` simartin at gcc dot gnu.org
@ 2010-11-06 22:07 ` simartin at gcc dot gnu.org
  2011-06-27 14:34 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 9+ messages in thread
From: simartin at gcc dot gnu.org @ 2010-11-06 22:07 UTC (permalink / raw)
  To: gcc-bugs

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

Simon Martin <simartin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |4.6.0
            Summary|[4.3/4.4/4.5/4.6            |[4.3/4.4/4.5 Regression]
                   |Regression] ICE:            |ICE: Segmentation fault
                   |Segmentation fault with     |with invalid K&R-like code
                   |invalid K&R-like code       |

--- Comment #7 from Simon Martin <simartin at gcc dot gnu.org> 2010-11-06 22:07:18 UTC ---
Fixed in 4.6


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

* [Bug c/43384] [4.3/4.4/4.5 Regression] ICE: Segmentation fault with invalid K&R-like code
       [not found] <bug-43384-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2010-11-06 22:07 ` [Bug c/43384] [4.3/4.4/4.5 " simartin at gcc dot gnu.org
@ 2011-06-27 14:34 ` rguenth at gcc dot gnu.org
  2012-03-13 14:18 ` [Bug c/43384] [4.5 " jakub at gcc dot gnu.org
  2012-07-02 10:24 ` rguenth at gcc dot gnu.org
  5 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-06-27 14:34 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.3.6                       |4.4.7

--- Comment #8 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-06-27 12:13:51 UTC ---
4.3 branch is being closed, moving to 4.4.7 target.


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

* [Bug c/43384] [4.5 Regression] ICE: Segmentation fault with invalid K&R-like code
       [not found] <bug-43384-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2011-06-27 14:34 ` rguenth at gcc dot gnu.org
@ 2012-03-13 14:18 ` jakub at gcc dot gnu.org
  2012-07-02 10:24 ` rguenth at gcc dot gnu.org
  5 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-03-13 14:18 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.4.7                       |4.5.4

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-03-13 12:46:55 UTC ---
4.4 branch is being closed, moving to 4.5.4 target.


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

* [Bug c/43384] [4.5 Regression] ICE: Segmentation fault with invalid K&R-like code
       [not found] <bug-43384-4@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2012-03-13 14:18 ` [Bug c/43384] [4.5 " jakub at gcc dot gnu.org
@ 2012-07-02 10:24 ` rguenth at gcc dot gnu.org
  5 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-07-02 10:24 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|4.5.4                       |4.6.0

--- Comment #10 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-07-02 10:24:37 UTC ---
Fixed in 4.6.0, the 4.5 branch is being closed.


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

* [Bug c/43384] [4.3/4.4/4.5 Regression] ICE: Segmentation fault with invalid K&R-like code
  2010-03-15 20:44 [Bug c/43384] New: [4.3/4.4/4.5 Regression] ICE: Segmentation fault with invalid K&R-like declaration related to labels zsojka at seznam dot cz
  2010-03-16 11:49 ` [Bug c/43384] [4.3/4.4/4.5 Regression] ICE: Segmentation fault with invalid K&R-like code rguenth at gcc dot gnu dot org
  2010-03-17 15:19 ` rguenth at gcc dot gnu dot org
@ 2010-03-24 13:49 ` zsojka at seznam dot cz
  2 siblings, 0 replies; 9+ messages in thread
From: zsojka at seznam dot cz @ 2010-03-24 13:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from zsojka at seznam dot cz  2010-03-24 13:49 -------
Created an attachment (id=20184)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20184&action=view)
another similiar testcase

3.3.6 gives:
$ gcc-3.3.6 pr43384-3.c 
pr43384-3.c: In function `foo':
pr43384-3.c:2: error: parameter `j' is initialized
pr43384-3.c:2: error: `i' undeclared (first use in this function)
pr43384-3.c:2: error: (Each undeclared identifier is reported only once
pr43384-3.c:2: error: for each function it appears in.)
pr43384-3.c:2: error: declaration for parameter `j' but no such parameter

3.4.6 and newer without checking:
$ gcc-3.4.6 pr43384-3.c 
pr43384-3.c: In function `foo':
pr43384-3.c:2: error: parameter `j' is initialized
pr43384-3.c:2: error: `i' undeclared (first use in this function)
pr43384-3.c:2: error: (Each undeclared identifier is reported only once
pr43384-3.c:2: error: for each function it appears in.)
pr43384-3.c:2: confused by earlier errors, bailing out

trunk with checking:
$ /mnt/svn/gcc-trunk/binary-157675-lto/bin/gcc pr43384-3.c 
pr43384-3.c: In function 'foo':
pr43384-3.c:2:1: error: parameter 'j' is initialized
pr43384-3.c:2:9: error: 'i' undeclared (first use in this function)
pr43384-3.c:2:9: note: each undeclared identifier is reported only once for
each function it appears in
pr43384-3.c:3:1: internal compiler error: tree check: expected tree that
contains 'decl minimal' structure, have 'error_mark' in
store_parm_decls_oldstyle, at c-decl.c:7670

4.4 with checking:
$ /mnt/svn/gcc-4_4/binary-157395-enable-checking/bin/gcc pr43384-3.c 
pr43384-3.c: In function 'foo':
pr43384-3.c:2: error: parameter 'j' is initialized
pr43384-3.c:2: error: 'i' undeclared (first use in this function)
pr43384-3.c:2: error: (Each undeclared identifier is reported only once
pr43384-3.c:2: error: for each function it appears in.)
'
tree check: expected tree that contains 'decl minimal' structure, have
'error_mark' in c_tree_printer, at c-objc-common.c:109


-- 


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


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

* [Bug c/43384] [4.3/4.4/4.5 Regression] ICE: Segmentation fault with invalid K&R-like code
  2010-03-15 20:44 [Bug c/43384] New: [4.3/4.4/4.5 Regression] ICE: Segmentation fault with invalid K&R-like declaration related to labels zsojka at seznam dot cz
  2010-03-16 11:49 ` [Bug c/43384] [4.3/4.4/4.5 Regression] ICE: Segmentation fault with invalid K&R-like code rguenth at gcc dot gnu dot org
@ 2010-03-17 15:19 ` rguenth at gcc dot gnu dot org
  2010-03-24 13:49 ` zsojka at seznam dot cz
  2 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-03-17 15:19 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P5


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


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

* [Bug c/43384] [4.3/4.4/4.5 Regression] ICE: Segmentation fault with invalid K&R-like code
  2010-03-15 20:44 [Bug c/43384] New: [4.3/4.4/4.5 Regression] ICE: Segmentation fault with invalid K&R-like declaration related to labels zsojka at seznam dot cz
@ 2010-03-16 11:49 ` rguenth at gcc dot gnu dot org
  2010-03-17 15:19 ` rguenth at gcc dot gnu dot org
  2010-03-24 13:49 ` zsojka at seznam dot cz
  2 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-03-16 11:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2010-03-16 11:49 -------
Confirmed.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2010-03-16 11:49:43
               date|                            |
   Target Milestone|---                         |4.3.5


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


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

end of thread, other threads:[~2012-07-02 10:24 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-43384-4@http.gcc.gnu.org/bugzilla/>
2010-10-31  7:57 ` [Bug c/43384] [4.3/4.4/4.5/4.6 Regression] ICE: Segmentation fault with invalid K&R-like code simartin at gcc dot gnu.org
2010-11-06 21:59 ` simartin at gcc dot gnu.org
2010-11-06 22:07 ` [Bug c/43384] [4.3/4.4/4.5 " simartin at gcc dot gnu.org
2011-06-27 14:34 ` rguenth at gcc dot gnu.org
2012-03-13 14:18 ` [Bug c/43384] [4.5 " jakub at gcc dot gnu.org
2012-07-02 10:24 ` rguenth at gcc dot gnu.org
2010-03-15 20:44 [Bug c/43384] New: [4.3/4.4/4.5 Regression] ICE: Segmentation fault with invalid K&R-like declaration related to labels zsojka at seznam dot cz
2010-03-16 11:49 ` [Bug c/43384] [4.3/4.4/4.5 Regression] ICE: Segmentation fault with invalid K&R-like code rguenth at gcc dot gnu dot org
2010-03-17 15:19 ` rguenth at gcc dot gnu dot org
2010-03-24 13:49 ` zsojka at seznam dot cz

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