public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/28299]  New: ICE with -Wmissing-prototypes
@ 2006-07-07 10:52 aldot at gcc dot gnu dot org
  2006-07-10 10:32 ` [Bug c/28299] " aldot at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: aldot at gcc dot gnu dot org @ 2006-07-07 10:52 UTC (permalink / raw)
  To: gcc-bugs

$ cat ice.c
extern __typeof(foo) foo __asm__("") ;
void * foo (void) {};
$ gcc-4.2-HEAD -c ice.c -Wmissing-prototypes -o ice.o
ice.c:1: error: 'foo' undeclared here (not in a function)
ice.c:2: internal compiler error: tree check: expected function_type or
method_type, have integer_type in start_function, at c-decl.c:6039
Please submit a full bug report,
with preprocessed source if appropriate.

The ICE naturally goes away with -Wno-missing-prototype.

Maybe related to PR 27719


-- 
           Summary: ICE with -Wmissing-prototypes
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: aldot at gcc dot gnu dot org


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


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

* [Bug c/28299] ICE with -Wmissing-prototypes
  2006-07-07 10:52 [Bug c/28299] New: ICE with -Wmissing-prototypes aldot at gcc dot gnu dot org
@ 2006-07-10 10:32 ` aldot at gcc dot gnu dot org
  2006-07-10 10:34 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: aldot at gcc dot gnu dot org @ 2006-07-10 10:32 UTC (permalink / raw)
  To: gcc-bugs



-- 

aldot at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
      Known to fail|                            |4.2.0
      Known to work|                            |4.0.1
           Priority|P3                          |P2
   Target Milestone|---                         |4.2.0


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


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

* [Bug c/28299] ICE with -Wmissing-prototypes
  2006-07-07 10:52 [Bug c/28299] New: ICE with -Wmissing-prototypes aldot at gcc dot gnu dot org
  2006-07-10 10:32 ` [Bug c/28299] " aldot at gcc dot gnu dot org
@ 2006-07-10 10:34 ` pinskia at gcc dot gnu dot org
  2006-07-13 15:44 ` [Bug c/28299] [4.0/4.1/4.2 regression] " reichelt at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-07-10 10:34 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.2.0                       |---


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


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

* [Bug c/28299] [4.0/4.1/4.2 regression] ICE with -Wmissing-prototypes
  2006-07-07 10:52 [Bug c/28299] New: ICE with -Wmissing-prototypes aldot at gcc dot gnu dot org
  2006-07-10 10:32 ` [Bug c/28299] " aldot at gcc dot gnu dot org
  2006-07-10 10:34 ` pinskia at gcc dot gnu dot org
@ 2006-07-13 15:44 ` reichelt at gcc dot gnu dot org
  2006-08-25 11:15 ` jsm28 at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-07-13 15:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from reichelt at gcc dot gnu dot org  2006-07-13 15:44 -------
Shorter testcase that ICE's without issuing an error message first:

======================
int foo;
void foo() {}
======================

The problem appeared with GCC 3.0.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|ice-on-valid-code           |ice-on-invalid-code,
                   |                            |monitored
      Known to work|4.0.1                       |
   Last reconfirmed|0000-00-00 00:00:00         |2006-07-13 15:44:20
               date|                            |
            Summary|ICE with -Wmissing-         |[4.0/4.1/4.2 regression] ICE
                   |prototypes                  |with -Wmissing-prototypes
   Target Milestone|---                         |4.0.4


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


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

* [Bug c/28299] [4.0/4.1/4.2 regression] ICE with -Wmissing-prototypes
  2006-07-07 10:52 [Bug c/28299] New: ICE with -Wmissing-prototypes aldot at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-07-13 15:44 ` [Bug c/28299] [4.0/4.1/4.2 regression] " reichelt at gcc dot gnu dot org
@ 2006-08-25 11:15 ` jsm28 at gcc dot gnu dot org
  2006-08-25 21:12 ` jsm28 at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2006-08-25 11:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jsm28 at gcc dot gnu dot org  2006-08-25 11:15 -------
Working on a fix.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jsm28 at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2006-07-13 15:44:20         |2006-08-25 11:15:44
               date|                            |


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


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

* [Bug c/28299] [4.0/4.1/4.2 regression] ICE with -Wmissing-prototypes
  2006-07-07 10:52 [Bug c/28299] New: ICE with -Wmissing-prototypes aldot at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2006-08-25 11:15 ` jsm28 at gcc dot gnu dot org
@ 2006-08-25 21:12 ` jsm28 at gcc dot gnu dot org
  2006-08-25 22:51 ` [Bug c/28299] [4.0/4.1 " jsm28 at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2006-08-25 21:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jsm28 at gcc dot gnu dot org  2006-08-25 21:11 -------
Subject: Bug 28299

Author: jsm28
Date: Fri Aug 25 21:11:46 2006
New Revision: 116435

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116435
Log:
        PR c/28299
        * c-decl.c (start_function): Don't try to process prototype
        information from old declaration that isn't a function.

testsuite:
        * gcc.dg/funcdef-var-1.c, gcc.dg/funcdef-var-2.c: New tests.
        * gcc.dg/pr20368-1.c, gcc.dg/pr20368-2.c, gcc.dg/pr20368-3.c:
        Expect extra diagnostics.

Added:
    trunk/gcc/testsuite/gcc.dg/funcdef-var-1.c
    trunk/gcc/testsuite/gcc.dg/funcdef-var-2.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-decl.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/pr20368-1.c
    trunk/gcc/testsuite/gcc.dg/pr20368-2.c
    trunk/gcc/testsuite/gcc.dg/pr20368-3.c


-- 


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


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

* [Bug c/28299] [4.0/4.1 regression] ICE with -Wmissing-prototypes
  2006-07-07 10:52 [Bug c/28299] New: ICE with -Wmissing-prototypes aldot at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2006-08-25 21:12 ` jsm28 at gcc dot gnu dot org
@ 2006-08-25 22:51 ` jsm28 at gcc dot gnu dot org
  2006-08-26  0:24 ` jsm28 at gcc dot gnu dot org
  2006-08-26  2:36 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2006-08-25 22:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jsm28 at gcc dot gnu dot org  2006-08-25 22:50 -------
Subject: Bug 28299

Author: jsm28
Date: Fri Aug 25 22:50:03 2006
New Revision: 116444

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116444
Log:
        PR c/28299
        * c-decl.c (start_function): Don't try to process prototype
        information from old declaration that isn't a function.

testsuite:
        * gcc.dg/funcdef-var-1.c, gcc.dg/funcdef-var-2.c: New tests.
        * gcc.dg/pr20368-1.c, gcc.dg/pr20368-2.c, gcc.dg/pr20368-3.c:
        Expect extra diagnostics.

Added:
    branches/gcc-4_1-branch/gcc/testsuite/gcc.dg/funcdef-var-1.c
      - copied unchanged from r116435,
trunk/gcc/testsuite/gcc.dg/funcdef-var-1.c
    branches/gcc-4_1-branch/gcc/testsuite/gcc.dg/funcdef-var-2.c
      - copied unchanged from r116435,
trunk/gcc/testsuite/gcc.dg/funcdef-var-2.c
Modified:
    branches/gcc-4_1-branch/gcc/ChangeLog
    branches/gcc-4_1-branch/gcc/c-decl.c
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_1-branch/gcc/testsuite/gcc.dg/pr20368-1.c
    branches/gcc-4_1-branch/gcc/testsuite/gcc.dg/pr20368-2.c
    branches/gcc-4_1-branch/gcc/testsuite/gcc.dg/pr20368-3.c


-- 


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


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

* [Bug c/28299] [4.0/4.1 regression] ICE with -Wmissing-prototypes
  2006-07-07 10:52 [Bug c/28299] New: ICE with -Wmissing-prototypes aldot at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2006-08-25 22:51 ` [Bug c/28299] [4.0/4.1 " jsm28 at gcc dot gnu dot org
@ 2006-08-26  0:24 ` jsm28 at gcc dot gnu dot org
  2006-08-26  2:36 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2006-08-26  0:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from jsm28 at gcc dot gnu dot org  2006-08-26 00:23 -------
Subject: Bug 28299

Author: jsm28
Date: Sat Aug 26 00:22:23 2006
New Revision: 116459

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116459
Log:
        PR c/28299
        * c-decl.c (start_function): Don't try to process prototype
        information from old declaration that isn't a function.

testsuite:
        * gcc.dg/funcdef-var-1.c, gcc.dg/funcdef-var-2.c: New tests.
        * gcc.dg/pr20368-1.c, gcc.dg/pr20368-2.c, gcc.dg/pr20368-3.c:
        Expect extra diagnostics.

Added:
    branches/gcc-4_0-branch/gcc/testsuite/gcc.dg/funcdef-var-1.c
      - copied unchanged from r116435,
trunk/gcc/testsuite/gcc.dg/funcdef-var-1.c
    branches/gcc-4_0-branch/gcc/testsuite/gcc.dg/funcdef-var-2.c
      - copied unchanged from r116435,
trunk/gcc/testsuite/gcc.dg/funcdef-var-2.c
Modified:
    branches/gcc-4_0-branch/gcc/ChangeLog
    branches/gcc-4_0-branch/gcc/c-decl.c
    branches/gcc-4_0-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_0-branch/gcc/testsuite/gcc.dg/pr20368-1.c
    branches/gcc-4_0-branch/gcc/testsuite/gcc.dg/pr20368-2.c
    branches/gcc-4_0-branch/gcc/testsuite/gcc.dg/pr20368-3.c


-- 


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


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

* [Bug c/28299] [4.0/4.1 regression] ICE with -Wmissing-prototypes
  2006-07-07 10:52 [Bug c/28299] New: ICE with -Wmissing-prototypes aldot at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2006-08-26  0:24 ` jsm28 at gcc dot gnu dot org
@ 2006-08-26  2:36 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-08-26  2:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from pinskia at gcc dot gnu dot org  2006-08-26 02:36 -------
Fixed.


-- 

pinskia at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2006-08-26  2:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-07 10:52 [Bug c/28299] New: ICE with -Wmissing-prototypes aldot at gcc dot gnu dot org
2006-07-10 10:32 ` [Bug c/28299] " aldot at gcc dot gnu dot org
2006-07-10 10:34 ` pinskia at gcc dot gnu dot org
2006-07-13 15:44 ` [Bug c/28299] [4.0/4.1/4.2 regression] " reichelt at gcc dot gnu dot org
2006-08-25 11:15 ` jsm28 at gcc dot gnu dot org
2006-08-25 21:12 ` jsm28 at gcc dot gnu dot org
2006-08-25 22:51 ` [Bug c/28299] [4.0/4.1 " jsm28 at gcc dot gnu dot org
2006-08-26  0:24 ` jsm28 at gcc dot gnu dot org
2006-08-26  2:36 ` pinskia at gcc dot gnu 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).