In the testsuite for C++ is the file g++.dg/ext/utf16-4.C

I just tried to compile this file with the GNU C++ compiler
version 4.4 snapshot 20090109 using valgrind.

The debug output was

g++.dg/ext/utf16-4.C:6:29: error: empty character constant
==9851== Conditional jump or move depends on uninitialised value(s)
==9851==    at 0x5807A8: c_lex_with_flags (c-lex.c:992)
==9851==    by 0x4B0ADF: cp_lexer_get_preprocessor_token (parser.c:405)
==9851==    by 0x4D1C22: c_parse_file (parser.c:304)
==9851==    by 0x58840C: c_common_parse_file (c-opts.c:1243)
==9851==    by 0x82FA64: toplev_main (toplev.c:970)
==9851==    by 0x5CF1585: (below main) (in /lib64/libc-2.9.so)

It might be a good idea to process this broken C++ code
in a cleaner way.

Similar fun & games for test case g++.dg/ext/utf32-4.C


-- 
           Summary: valgrind finds problem for broken C++ code
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dcb314 at hotmail dot com
  GCC host triplet: x86_64-suse-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38841

Reply via email to