This is the mail archive of the 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++/24906] New: ICE When using -fmudflap on a simple C++ source file


I get the following message when I try to compile a simple C++ source file
using strings:

strbug.cpp: In member function 'void AClass::meth(AClass::AnInterface&)':
strbug.cpp:17: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:> for instructions.
Preprocessed source stored into /tmp/ccvs6PL2.out file, please attach this to
your bugreport.

This happens when I compile as follow:

g++ -Wall -fmudflap -c strbug.cpp

Without the -fmudflap flag, there is no ICE.

The corresponding source file is:

#include <string>

class AClass {
   std::string name;

   class AnInterface {
      virtual bool intf_meth(AClass &p_aclass) = 0;
      virtual ~AnInterface(void) { }

   void meth(AnInterface &p_interf);

void AClass::meth(AnInterface &p_interf)
   name = std::string();


I did not included the preprocessed source file since it is more than 19k lines

Note also that I'm using Fedora Core 4 Linux with the gcc update installed
(this is why it is version 4.0.1).



           Summary: ICE When using -fmudflap on a simple C++ source file
           Product: gcc
           Version: 4.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: martin dot audet at imi dot cnrc-nrc dot gc dot ca
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu

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