I get an ICE for gcc 4.0.0 when trying to use mudflap and libstdc++ debug mode
together; This is the smallest testcase I could make:

test.cc:
"""
#include <vector>

struct S { unsigned i; };

void g(const unsigned u, std::vector<unsigned>& s);

void f(const S& s) {
  std::vector<std::vector<unsigned> > t(1);
  g(s.i,t[0]);
}
"""

$ g++ -D_GLIBCXX_DEBUG -fmudflap -c test.cc
test.cc: In function 'void f(const S&)':
test.cc:7: 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.

$ gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.0.0/configure --enable-languages=c,c++
--prefix=/home/ctsa/opt/i686-linux/gcc-4.0.0 --enable-concept-checks
--enable-__cxa_atexit
Thread model: posix
gcc version 4.0.0

-- 
           Summary: ICE with: "-fmudflap  -D_GLIBCXX_DEBUG"
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libmudflap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ctsa at u dot washington dot edu
                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=22155

Reply via email to