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++/14427] New: ICE (segfault) putting "class" before non-class type


This code causes an ICE in gcc versions 3.3.3, 3.3.2, 3.0.4, 2.96-redhat

/*** begin code: bug.cc ***/
namespace foo {
    typedef int bar;
};

class foo::bar;
/*** end code: bug.cc ***/

The output of gcc-3.3.3 is:

bash$ g++ bug.cc -c
bug.cc:5: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
Preprocessed source stored into /tmp/cc0Rl0Yj.out file, please attach this to
your bugreport

-- 
           Summary: ICE (segfault) putting "class" before non-class type
           Product: gcc
           Version: 3.3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: luked at xplantechnology 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=14427


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