------- Comment #5 from haubi at gentoo dot org 2008-02-25 19:17 ------- Similar problem here, with gcc-4.1.1:
This issue does not always end up in an ICE, but when using valgrind, some "Invalid read of size 1" are consistently reported for cc1plus caused by coverage_checksum_string(): $ cat gcovtest.cc class A { public: static const char* version0; }; static const char* A_version0 = A::version0; $ valgrind --num-callers=50 --log-file=vg.out --trace-children=yes x86_64-unknown-linux-gnu-g++ -fprofile-arcs -ftest-coverage -c gcovtest.cc This does not depend on x86_64-unknown-linux-gnu - it's just that I tried it here with cc1plus having some debug info built in. I've seen similar ICEs and valgrind output on i686-pc-linux-gnu too. -- haubi at gentoo dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |haubi at gentoo dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32316