This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/20536] New: G++ segfault on tiny snipped of invalid code


Trying to compile the following invalid code with  
gcc (GCC) 4.1.0 20050312 (experimental) 
results in an ICE: segfault.  
 
Version 3.4.1 is not affectected.  
 
-------------------------<segfault.cc>--------------------------- 
// Found by Wolfgang Wieser 03/2005.  
// Crash gcc (GCC) 4.1.0 20050312 (experimental).  
 
struct yyguts_t 
{ 
    class TestScanner* yyextra_r; 
}; 
    
TestScanner::TestScanner() 
{ 
} 
------------------------------------------------------------------- 
 
segfault.cc:9: error: invalid use of undefined type 'struct TestScanner' 
segfault.cc:6: error: forward declaration of 'struct TestScanner' 
segfault.cc: In constructor 'TestScanner::TestScanner()': 
segfault.cc:9: 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: G++ segfault on tiny snipped of invalid code
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: wwieser at gmx dot de
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-linux-gnu
  GCC host triplet: i686-linux-gnu
GCC target triplet: i686-linux-gnu


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]