c++/5586: Internal compiler error (on code that should fail)

rodrigc@gcc.gnu.org rodrigc@gcc.gnu.org
Mon Feb 4 15:29:00 GMT 2002


Synopsis: Internal compiler error (on code that should fail)

State-Changed-From-To: open->closed
State-Changed-By: rodrigc
State-Changed-When: Mon Feb  4 14:58:48 2002
State-Changed-Why:
    Works fine with gcc 3.0.3.
    
    If I change line 98 from cout to count, I get an error, but
    no Internal Compiler Error:
    
    dbug.cc: In function `void generate_shortest_paths_tree(vertex&)':
    dbug.cc:98: no match for `<unknown type> << const std::basic_string<char,
       std::char_traits<char>, std::allocator<char> >&' operator
    /u0/test/gcc/include/g++-v3/bits/ostream.tcc:725: candidates are:
       std::basic_ostream<_CharT, _Traits>&
       std::operator<<(std::basic_ostream<_CharT, _Traits>&, const
       std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Traits =
       std::char_traits<char>, _Alloc = std::allocator<char>]

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5586



More information about the Gcc-bugs mailing list