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

Reply via email to