[Bug c++/14912] Do not print default template arguments in error messages
pluto at agmk dot net
gcc-bugzilla@gcc.gnu.org
Mon Mar 23 19:01:00 GMT 2009
------- Comment #48 from pluto at agmk dot net 2009-03-23 19:00 -------
with the latest patch applied on top of 4.4-svn i get
following diagnostic for simple code snippet:
$ cat 14912-2.cpp
#include <string>
std::string s = 7;
$ /opt/gcc44/bin/g++ -c -Wall -O2 14912-2.cpp
14912-2.cpp:2: error: invalid conversion from 'int' to 'const char*'
14912-2.cpp:2: error: initializing argument 1 of 'std::basic_string<_CharT,
_Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT =
char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]'
defaults are still printed in this case.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14912
More information about the Gcc-bugs
mailing list