public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/23118] New: Another segmentation fault after improper overloading (BootView)
@ 2005-07-28 19:59 flash at pobox dot com
  2005-07-28 20:02 ` [Bug c++/23118] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: flash at pobox dot com @ 2005-07-28 19:59 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 3241 bytes --]

The source below gives a segfault on GCC 4.0.1.  Spun off from Bugzilla Bug 22604, per Andrew Pinski, 
since he said it was a separate issue with the same symptom.  PalmSource bug 105158.

Source:
class nameOne : public nameTwo, public nameThree, public nameFour, public nameFive, public 
nameSix
{
 void nameSeven(const nameEight &name, const nameNine & icon);
 virtual void nameSeven(const nameEight& name, const nameTen &icon);


Session:
/opt/gcc401chk/bin/g++ -v ../cpp/bugfiles/GCC_bugfiles/error/105158_BootView_min.ii
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../configure --enable-checking --prefix=/opt/gcc401chk --enable-languages=c,c+
+
Thread model: posix
gcc version 4.0.1
 /opt/gcc401chk/libexec/gcc/i686-pc-linux-gnu/4.0.1/cc1plus -fpreprocessed ../cpp/bugfiles/
GCC_bugfiles/error/105158_BootView_min.ii -quiet -dumpbase 105158_BootView_min.ii -
mtune=pentiumpro -auxbase 105158_BootView_min -version -o /tmp/cc1SYkYS.s
GNU C++ version 4.0.1 (i686-pc-linux-gnu)
        compiled by GNU C version 3.3.4 (pre 3.3.5 20040809).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
../cpp/bugfiles/GCC_bugfiles/error/105158_BootView_min.ii:1: error: expected class-name before ‘,’ 
token
../cpp/bugfiles/GCC_bugfiles/error/105158_BootView_min.ii:1: error: expected class-name before ‘,’ 
token
../cpp/bugfiles/GCC_bugfiles/error/105158_BootView_min.ii:1: error: expected class-name before ‘,’ 
token
../cpp/bugfiles/GCC_bugfiles/error/105158_BootView_min.ii:1: error: expected class-name before ‘,’ 
token
../cpp/bugfiles/GCC_bugfiles/error/105158_BootView_min.ii:2: error: expected class-name before ‘{’ 
token
../cpp/bugfiles/GCC_bugfiles/error/105158_BootView_min.ii:3: error: expected ‘,’ or ‘...’ before ‘&’ 
token
../cpp/bugfiles/GCC_bugfiles/error/105158_BootView_min.ii:3: error: ISO C++ forbids declaration of 
‘nameEight’ with no type
../cpp/bugfiles/GCC_bugfiles/error/105158_BootView_min.ii:4: error: expected ‘,’ or ‘...’ before ‘&’ 
token
../cpp/bugfiles/GCC_bugfiles/error/105158_BootView_min.ii:4: error: ISO C++ forbids declaration of 
‘nameEight’ with no type
../cpp/bugfiles/GCC_bugfiles/error/105158_BootView_min.ii:4: error: ‘virtual void 
nameOne::nameSeven(int)’ and ‘void nameOne::nameSeven(int)’ cannot be overloaded
../cpp/bugfiles/GCC_bugfiles/error/105158_BootView_min.ii:4: error: expected `}' at end of input
../cpp/bugfiles/GCC_bugfiles/error/105158_BootView_min.ii:2: 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.

-- 
           Summary: Another segmentation fault after improper overloading
                    (BootView)
           Product: gcc
           Version: 4.0.1
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: flash at pobox dot com
                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=23118


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

* [Bug c++/23118] Another segmentation fault after improper overloading (BootView)
  2005-07-28 19:59 [Bug c++/23118] New: Another segmentation fault after improper overloading (BootView) flash at pobox dot com
  2005-07-28 20:02 ` [Bug c++/23118] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-07-28 20:02 ` flash at pobox dot com
  2005-08-01  8:39 ` [Bug c++/23118] [3.4/4.0/4.1 Regression] " reichelt at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 11+ messages in thread
From: flash at pobox dot com @ 2005-07-28 20:02 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From flash at pobox dot com  2005-07-28 19:58 -------
Created an attachment (id=9381)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9381&action=view)
105158_BootView_min.ii


-- 


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


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

* [Bug c++/23118] [3.4/4.0/4.1 Regression] Another segmentation fault after improper overloading (BootView)
  2005-07-28 19:59 [Bug c++/23118] New: Another segmentation fault after improper overloading (BootView) flash at pobox dot com
@ 2005-07-28 20:02 ` pinskia at gcc dot gnu dot org
  2005-07-28 20:02 ` [Bug c++/23118] " flash at pobox dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-28 20:02 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-28 20:02 -------
Confirmed,  the main reason why I said it was a different bug is because the backtraces are different.  
The second reason why I know it is a different bug is that this bug we crash in 3.4.0 also (though with
"t.cc:2: confused by earlier errors, bailing out" but that is just an ICE after a couple of errors).

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |error-recovery, 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-07-28 20:02:41
               date|                            |
            Summary|Another segmentation fault  |[3.4/4.0/4.1 Regression]
                   |after improper overloading  |Another segmentation fault
                   |(BootView)                  |after improper overloading
                   |                            |(BootView)
   Target Milestone|---                         |4.0.2


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


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

* [Bug c++/23118] [3.4/4.0/4.1 Regression] Another segmentation fault after improper overloading (BootView)
  2005-07-28 19:59 [Bug c++/23118] New: Another segmentation fault after improper overloading (BootView) flash at pobox dot com
  2005-07-28 20:02 ` [Bug c++/23118] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
  2005-07-28 20:02 ` [Bug c++/23118] " flash at pobox dot com
@ 2005-08-01  8:39 ` reichelt at gcc dot gnu dot org
  2005-08-05 19:38 ` reichelt at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 11+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-08-01  8:39 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2005-08-01 08:39 -------
Less invalid ;-) testcase:

==========================
struct A
{
    void foo();
    virtual void foo();
};
==========================

This crashes since gcc 3.0.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt 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           |
           Keywords|                            |monitored


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


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

* [Bug c++/23118] [3.4/4.0/4.1 Regression] Another segmentation fault after improper overloading (BootView)
  2005-07-28 19:59 [Bug c++/23118] New: Another segmentation fault after improper overloading (BootView) flash at pobox dot com
                   ` (2 preceding siblings ...)
  2005-08-01  8:39 ` [Bug c++/23118] [3.4/4.0/4.1 Regression] " reichelt at gcc dot gnu dot org
@ 2005-08-05 19:38 ` reichelt at gcc dot gnu dot org
  2005-08-08 18:16 ` pinskia at gcc dot gnu dot org
  2005-09-27 16:19 ` mmitchel at gcc dot gnu dot org
  5 siblings, 0 replies; 11+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-08-05 19:38 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2005-08-05 19:38 -------
Testing a patch.


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


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

* [Bug c++/23118] [3.4/4.0/4.1 Regression] Another segmentation fault after improper overloading (BootView)
  2005-07-28 19:59 [Bug c++/23118] New: Another segmentation fault after improper overloading (BootView) flash at pobox dot com
                   ` (3 preceding siblings ...)
  2005-08-05 19:38 ` reichelt at gcc dot gnu dot org
@ 2005-08-08 18:16 ` pinskia at gcc dot gnu dot org
  2005-09-27 16:19 ` mmitchel at gcc dot gnu dot org
  5 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-08 18:16 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-08 18:16 -------
: Search converges between 2001-06-03-trunk (#22) and 2001-06-10-trunk (#23).



-- 


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


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

* [Bug c++/23118] [3.4/4.0/4.1 Regression] Another segmentation fault after improper overloading (BootView)
  2005-07-28 19:59 [Bug c++/23118] New: Another segmentation fault after improper overloading (BootView) flash at pobox dot com
                   ` (4 preceding siblings ...)
  2005-08-08 18:16 ` pinskia at gcc dot gnu dot org
@ 2005-09-27 16:19 ` mmitchel at gcc dot gnu dot org
  5 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-09-27 16:19 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=23118


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

* [Bug c++/23118] [3.4/4.0/4.1 Regression] Another segmentation fault after improper overloading (BootView)
       [not found] <bug-23118-8581@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2005-10-18 12:34 ` cvs-commit at gcc dot gnu dot org
@ 2005-10-18 12:39 ` nathan at gcc dot gnu dot org
  3 siblings, 0 replies; 11+ messages in thread
From: nathan at gcc dot gnu dot org @ 2005-10-18 12:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from nathan at gcc dot gnu dot org  2005-10-18 12:39 -------
fixed mainline & 4.0
2005-10-18  Nathan Sidwell  <nathan@codesourcery.com>

        PR c++/22604
        * class.c (update_vtable_entry_for_fn): Don't process invalid
        covariant overriders.

        PR c++/23118
        * cp-tree.h (add_method): Add return value.
        * class.c (add_method): Return success indicator.
        * semantics.c (finish_member_declaration): Don't add an invalid
        method to the method list.

wont fix 3.4


-- 

nathan at gcc dot gnu dot org changed:

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


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


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

* [Bug c++/23118] [3.4/4.0/4.1 Regression] Another segmentation fault after improper overloading (BootView)
       [not found] <bug-23118-8581@http.gcc.gnu.org/bugzilla/>
  2005-10-17 17:36 ` nathan at gcc dot gnu dot org
  2005-10-18 12:30 ` cvs-commit at gcc dot gnu dot org
@ 2005-10-18 12:34 ` cvs-commit at gcc dot gnu dot org
  2005-10-18 12:39 ` nathan at gcc dot gnu dot org
  3 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-10-18 12:34 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from cvs-commit at gcc dot gnu dot org  2005-10-18 12:34 -------
Subject: Bug 23118

CVSROOT:        /cvs/gcc
Module name:    gcc
Branch:         gcc-4_0-branch
Changes by:     nathan@gcc.gnu.org      2005-10-18 12:34:30

Modified files:
        gcc/cp         : ChangeLog cp-tree.h class.c semantics.c 
        gcc/testsuite  : ChangeLog 
Added files:
        gcc/testsuite/g++.dg/overload: error2.C 
        gcc/testsuite/g++.dg/inherit: covariant14.C 

Log message:
        cp:
        PR c++/22604
        * class.c (update_vtable_entry_for_fn): Don't process invalid
        covariant overriders.

        PR c++/23118
        * cp-tree.h (add_method): Add return value.
        * class.c (add_method): Return success indicator.
        * semantics.c (finish_member_declaration): Don't add an invalid
        method to the method list.
        testsuite:
        PR c++/23118
        * g++.dg/overload/error2.C: New.

        PR c++/22604
        * g++.dg/inherit/covariant14.C: New.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.4648.2.142&r2=1.4648.2.143
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/cp-tree.h.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.1106.2.17&r2=1.1106.2.18
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/class.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.707.2.8&r2=1.707.2.9
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/semantics.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.463.2.12&r2=1.463.2.13
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.5084.2.466&r2=1.5084.2.467
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/overload/error2.C.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/inherit/covariant14.C.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1


-- 


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


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

* [Bug c++/23118] [3.4/4.0/4.1 Regression] Another segmentation fault after improper overloading (BootView)
       [not found] <bug-23118-8581@http.gcc.gnu.org/bugzilla/>
  2005-10-17 17:36 ` nathan at gcc dot gnu dot org
@ 2005-10-18 12:30 ` cvs-commit at gcc dot gnu dot org
  2005-10-18 12:34 ` cvs-commit at gcc dot gnu dot org
  2005-10-18 12:39 ` nathan at gcc dot gnu dot org
  3 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-10-18 12:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from cvs-commit at gcc dot gnu dot org  2005-10-18 12:30 -------
Subject: Bug 23118

CVSROOT:        /cvs/gcc
Module name:    gcc
Changes by:     nathan@gcc.gnu.org      2005-10-18 12:30:33

Modified files:
        gcc/cp         : ChangeLog cp-tree.h class.c semantics.c 
        gcc/testsuite  : ChangeLog 
Added files:
        gcc/testsuite/g++.dg/overload: error2.C 
        gcc/testsuite/g++.dg/inherit: covariant14.C 

Log message:
        cp:
        PR c++/22604
        * class.c (update_vtable_entry_for_fn): Don't process invalid
        covariant overriders.

        PR c++/23118
        * cp-tree.h (add_method): Add return value.
        * class.c (add_method): Return success indicator.
        * semantics.c (finish_member_declaration): Don't add an invalid
        method to the method list.
        testsuite:
        PR c++/23118
        * g++.dg/overload/error2.C: New.

        PR c++/22604
        * g++.dg/inherit/covariant14.C: New.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4944&r2=1.4945
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/cp-tree.h.diff?cvsroot=gcc&r1=1.1168&r2=1.1169
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/class.c.diff?cvsroot=gcc&r1=1.737&r2=1.738
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/semantics.c.diff?cvsroot=gcc&r1=1.493&r2=1.494
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.6207&r2=1.6208
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/overload/error2.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/inherit/covariant14.C.diff?cvsroot=gcc&r1=NONE&r2=1.1


-- 


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


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

* [Bug c++/23118] [3.4/4.0/4.1 Regression] Another segmentation fault after improper overloading (BootView)
       [not found] <bug-23118-8581@http.gcc.gnu.org/bugzilla/>
@ 2005-10-17 17:36 ` nathan at gcc dot gnu dot org
  2005-10-18 12:30 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 11+ messages in thread
From: nathan at gcc dot gnu dot org @ 2005-10-17 17:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from nathan at gcc dot gnu dot org  2005-10-17 17:36 -------
I'll take a look


-- 

nathan at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2005-10-18 12:39 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-28 19:59 [Bug c++/23118] New: Another segmentation fault after improper overloading (BootView) flash at pobox dot com
2005-07-28 20:02 ` [Bug c++/23118] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-07-28 20:02 ` [Bug c++/23118] " flash at pobox dot com
2005-08-01  8:39 ` [Bug c++/23118] [3.4/4.0/4.1 Regression] " reichelt at gcc dot gnu dot org
2005-08-05 19:38 ` reichelt at gcc dot gnu dot org
2005-08-08 18:16 ` pinskia at gcc dot gnu dot org
2005-09-27 16:19 ` mmitchel at gcc dot gnu dot org
     [not found] <bug-23118-8581@http.gcc.gnu.org/bugzilla/>
2005-10-17 17:36 ` nathan at gcc dot gnu dot org
2005-10-18 12:30 ` cvs-commit at gcc dot gnu dot org
2005-10-18 12:34 ` cvs-commit at gcc dot gnu dot org
2005-10-18 12:39 ` nathan 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).