------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-28 16:30
-------
Fixed since 3.2.2:
pr18201.cc:4: error: invalid use of template-name 'std::basic_ostream' in a
declarator
pr18201.cc:4: error: syntax error before `&' token
pr18201.cc:4: error: `charT' was not declared in this scope
pr18201.cc:4: error: template argument 1 is invalid
pr18201.cc:4: error: template argument 2 is invalid
pr18201.cc:4: warning: ISO C++ forbids declaration of `operator<<' with no type
pr18201.cc:4: warning: ISO C++ forbids declaration of `os' with no type
pr18201.cc:4: error: `int& operator<<(int&)' must have an argument of class or
enumerated type
pr18201.cc:4: error: `int& operator<<(int&)' must take exactly two arguments
3.4 gives:
t.cc:4: error: expected constructor, destructor, or type conversion before �&� token
t.cc:4: error: expected `;' before �&� token
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |3.1.x/3.2.x
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18201