The following trivial testcase crashes the compiler when using the options "-fmudflap -fprofile-arcs": ================== void foo() {} ================== With the C++ frontend I get the following error: g++: Internal error: Segmentation fault (program cc1plus) Please submit a full bug report. See <URL:http://gcc.gnu.org/bugs.html> for instructions. With the C frontend I get the following instead: bug.cc: In function '_GLOBAL__I_1_foo': bug.cc:1: 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. The bug dates back to GCC 4.0.0 (when "-fmudflap" was introduced).
Confirmed, the issue is -fprofile-arcs's arrays constructors don't contain an index.
Duplicate of PR20128. *** This bug has been marked as a duplicate of bug 20128 ***