public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/26789]  New: [4.1/4.2 regression] ICE on incomplete struct with -fmudflap
@ 2006-03-21 22:54 reichelt at gcc dot gnu dot org
  2006-03-21 22:59 ` [Bug c++/26789] " pinskia at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-03-21 22:54 UTC (permalink / raw)
  To: gcc-bugs

Compiling the following testcase with "g++ -fmudflap" yields
an ICE since GCC 4.1.0 (i.e. this is a regression):

=================
struct A;
A a;
=================

bug.cc:2: error: aggregate 'A a' has incomplete type and cannot be defined
bug.cc:2: internal compiler error: tree check: expected class 'type', have
'exceptional' (error_mark) in mudflap_finish_file, at tree-mudflap.c:1265
Please submit a full bug report, [etc.]

Testing a patch.


-- 
           Summary: [4.1/4.2 regression] ICE on incomplete struct with -
                    fmudflap
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, 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=26789


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

* [Bug c++/26789] [4.1/4.2 regression] ICE on incomplete struct with -fmudflap
  2006-03-21 22:54 [Bug c++/26789] New: [4.1/4.2 regression] ICE on incomplete struct with -fmudflap reichelt at gcc dot gnu dot org
@ 2006-03-21 22:59 ` pinskia at gcc dot gnu dot org
  2006-03-22  1:15 ` patchapp at dberlin dot org
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-21 22:59 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-03-21 22:59 -------
Confirmed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |minor
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-03-21 22:59:11
               date|                            |
   Target Milestone|---                         |4.1.1


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


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

* [Bug c++/26789] [4.1/4.2 regression] ICE on incomplete struct with -fmudflap
  2006-03-21 22:54 [Bug c++/26789] New: [4.1/4.2 regression] ICE on incomplete struct with -fmudflap reichelt at gcc dot gnu dot org
  2006-03-21 22:59 ` [Bug c++/26789] " pinskia at gcc dot gnu dot org
@ 2006-03-22  1:15 ` patchapp at dberlin dot org
  2006-03-22 21:42 ` reichelt at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: patchapp at dberlin dot org @ 2006-03-22  1:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from patchapp at dberlin dot org  2006-03-22 01:15 -------
Subject: Bug number PR26789

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-03/msg01355.html


-- 


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


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

* [Bug c++/26789] [4.1/4.2 regression] ICE on incomplete struct with -fmudflap
  2006-03-21 22:54 [Bug c++/26789] New: [4.1/4.2 regression] ICE on incomplete struct with -fmudflap reichelt at gcc dot gnu dot org
  2006-03-21 22:59 ` [Bug c++/26789] " pinskia at gcc dot gnu dot org
  2006-03-22  1:15 ` patchapp at dberlin dot org
@ 2006-03-22 21:42 ` reichelt at gcc dot gnu dot org
  2006-03-22 21:58 ` [Bug c++/26789] [4.1 " reichelt at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-03-22 21:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from reichelt at gcc dot gnu dot org  2006-03-22 21:42 -------
Subject: Bug 26789

Author: reichelt
Date: Wed Mar 22 21:42:34 2006
New Revision: 112296

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=112296
Log:
        PR mudflap/26789
        * tree-mudflap.c (mf_xform_derefs_1): Return early on error_mark_node.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/tree-mudflap.c


-- 


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


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

* [Bug c++/26789] [4.1 regression] ICE on incomplete struct with -fmudflap
  2006-03-21 22:54 [Bug c++/26789] New: [4.1/4.2 regression] ICE on incomplete struct with -fmudflap reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-03-22 21:42 ` reichelt at gcc dot gnu dot org
@ 2006-03-22 21:58 ` reichelt at gcc dot gnu dot org
  2006-04-16 19:04 ` mmitchel at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-03-22 21:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from reichelt at gcc dot gnu dot org  2006-03-22 21:58 -------
Fixed on mainline.

The testcase is still missing, though.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.1/4.2 regression] ICE on |[4.1 regression] ICE on
                   |incomplete struct with -    |incomplete struct with -
                   |fmudflap                    |fmudflap


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


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

* [Bug c++/26789] [4.1 regression] ICE on incomplete struct with -fmudflap
  2006-03-21 22:54 [Bug c++/26789] New: [4.1/4.2 regression] ICE on incomplete struct with -fmudflap reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2006-03-22 21:58 ` [Bug c++/26789] [4.1 " reichelt at gcc dot gnu dot org
@ 2006-04-16 19:04 ` mmitchel at gcc dot gnu dot org
  2006-04-19 18:14 ` reichelt at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-04-16 19:04 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2


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


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

* [Bug c++/26789] [4.1 regression] ICE on incomplete struct with -fmudflap
  2006-03-21 22:54 [Bug c++/26789] New: [4.1/4.2 regression] ICE on incomplete struct with -fmudflap reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2006-04-16 19:04 ` mmitchel at gcc dot gnu dot org
@ 2006-04-19 18:14 ` reichelt at gcc dot gnu dot org
  2006-04-19 21:47 ` reichelt at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-04-19 18:14 UTC (permalink / raw)
  To: gcc-bugs



-- 

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
             Status|NEW                         |ASSIGNED


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


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

* [Bug c++/26789] [4.1 regression] ICE on incomplete struct with -fmudflap
  2006-03-21 22:54 [Bug c++/26789] New: [4.1/4.2 regression] ICE on incomplete struct with -fmudflap reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2006-04-19 18:14 ` reichelt at gcc dot gnu dot org
@ 2006-04-19 21:47 ` reichelt at gcc dot gnu dot org
  2006-04-19 21:55 ` reichelt at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-04-19 21:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from reichelt at gcc dot gnu dot org  2006-04-19 21:47 -------
Subject: Bug 26789

Author: reichelt
Date: Wed Apr 19 21:47:03 2006
New Revision: 113095

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113095
Log:
        PR mudflap/26789
        * testsuite/libmudflap.c++/error1-frag.cxx: New test.

        PR mudflap/26790
        * testsuite/libmudflap.c++/error2-frag.cxx: New test.

Added:
    trunk/libmudflap/testsuite/libmudflap.c++/error1-frag.cxx
    trunk/libmudflap/testsuite/libmudflap.c++/error2-frag.cxx
Modified:
    trunk/libmudflap/ChangeLog


-- 


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


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

* [Bug c++/26789] [4.1 regression] ICE on incomplete struct with -fmudflap
  2006-03-21 22:54 [Bug c++/26789] New: [4.1/4.2 regression] ICE on incomplete struct with -fmudflap reichelt at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2006-04-19 21:47 ` reichelt at gcc dot gnu dot org
@ 2006-04-19 21:55 ` reichelt at gcc dot gnu dot org
  2006-04-20 16:01 ` reichelt at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-04-19 21:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from reichelt at gcc dot gnu dot org  2006-04-19 21:55 -------
Testcase now also on mainline.

Btw, I confused the patch for this PR with the one for PR 26790.
Since both were applied to mainline this doesn't really matter.
See http://gcc.gnu.org/ml/gcc-patches/2006-04/msg00722.html for details.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |http://gcc.gnu.org/ml/gcc-
                   |                            |patches/2006-
                   |                            |04/msg00722.html


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


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

* [Bug c++/26789] [4.1 regression] ICE on incomplete struct with -fmudflap
  2006-03-21 22:54 [Bug c++/26789] New: [4.1/4.2 regression] ICE on incomplete struct with -fmudflap reichelt at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2006-04-19 21:55 ` reichelt at gcc dot gnu dot org
@ 2006-04-20 16:01 ` reichelt at gcc dot gnu dot org
  2006-04-20 16:19 ` reichelt at gcc dot gnu dot org
  2006-04-20 16:25 ` reichelt at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-04-20 16:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from reichelt at gcc dot gnu dot org  2006-04-20 16:01 -------
Subject: Bug 26789

Author: reichelt
Date: Thu Apr 20 16:01:05 2006
New Revision: 113119

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113119
Log:
        PR mudflap/26789
        * tree-mudflap.c (mudflap_finish_file): Skip function when there were
        errors.

        * testsuite/libmudflap.c++/error1-frag.cxx: New test.

Added:
    branches/gcc-4_1-branch/libmudflap/testsuite/libmudflap.c++/error1-frag.cxx
Modified:
    branches/gcc-4_1-branch/gcc/ChangeLog
    branches/gcc-4_1-branch/gcc/tree-mudflap.c
    branches/gcc-4_1-branch/libmudflap/ChangeLog


-- 


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


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

* [Bug c++/26789] [4.1 regression] ICE on incomplete struct with -fmudflap
  2006-03-21 22:54 [Bug c++/26789] New: [4.1/4.2 regression] ICE on incomplete struct with -fmudflap reichelt at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2006-04-20 16:01 ` reichelt at gcc dot gnu dot org
@ 2006-04-20 16:19 ` reichelt at gcc dot gnu dot org
  2006-04-20 16:25 ` reichelt at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-04-20 16:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from reichelt at gcc dot gnu dot org  2006-04-20 16:19 -------
Subject: Bug 26789

Author: reichelt
Date: Thu Apr 20 16:19:21 2006
New Revision: 113121

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113121
Log:
        PR mudflap/26789
        * tree-mudflap.c (mudflap_finish_file): Skip function when there
        were errors.  Remove check for erroneous objects.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/tree-mudflap.c


-- 


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


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

* [Bug c++/26789] [4.1 regression] ICE on incomplete struct with -fmudflap
  2006-03-21 22:54 [Bug c++/26789] New: [4.1/4.2 regression] ICE on incomplete struct with -fmudflap reichelt at gcc dot gnu dot org
                   ` (9 preceding siblings ...)
  2006-04-20 16:19 ` reichelt at gcc dot gnu dot org
@ 2006-04-20 16:25 ` reichelt at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-04-20 16:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from reichelt at gcc dot gnu dot org  2006-04-20 16:24 -------
Now also fixed on the 4.1 branch.

The more drastic fix used there (skipping the whole function on errors
instead of just single erroneous objects) is now also on mainline, too.


-- 

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=26789


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

end of thread, other threads:[~2006-04-20 16:25 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-21 22:54 [Bug c++/26789] New: [4.1/4.2 regression] ICE on incomplete struct with -fmudflap reichelt at gcc dot gnu dot org
2006-03-21 22:59 ` [Bug c++/26789] " pinskia at gcc dot gnu dot org
2006-03-22  1:15 ` patchapp at dberlin dot org
2006-03-22 21:42 ` reichelt at gcc dot gnu dot org
2006-03-22 21:58 ` [Bug c++/26789] [4.1 " reichelt at gcc dot gnu dot org
2006-04-16 19:04 ` mmitchel at gcc dot gnu dot org
2006-04-19 18:14 ` reichelt at gcc dot gnu dot org
2006-04-19 21:47 ` reichelt at gcc dot gnu dot org
2006-04-19 21:55 ` reichelt at gcc dot gnu dot org
2006-04-20 16:01 ` reichelt at gcc dot gnu dot org
2006-04-20 16:19 ` reichelt at gcc dot gnu dot org
2006-04-20 16:25 ` reichelt 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).