public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/18201] New: Compiler suggests submitting a bug report after exiting while printing error message
@ 2004-10-28 16:25 ron at vaniwaarden dot org
  2004-10-28 16:30 ` [Bug c++/18201] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: ron at vaniwaarden dot org @ 2004-10-28 16:25 UTC (permalink / raw)
  To: gcc-bugs

The following should compile with an error message but the compiler dies in the
middle of printing an error message

#include <string>

template <class charT>
std::basic_ostream(charT)&  operator<<(std::basic_ostream<charT>& os);

-- 
           Summary: Compiler suggests submitting a bug report after exiting
                    while printing error message
           Product: gcc
           Version: 3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ron at vaniwaarden dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug c++/18201] Compiler suggests submitting a bug report after exiting while printing error message
  2004-10-28 16:25 [Bug c++/18201] New: Compiler suggests submitting a bug report after exiting while printing error message ron at vaniwaarden dot org
@ 2004-10-28 16:30 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-28 16:30 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1254 bytes --]


------- 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-10-28 16:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-28 16:25 [Bug c++/18201] New: Compiler suggests submitting a bug report after exiting while printing error message ron at vaniwaarden dot org
2004-10-28 16:30 ` [Bug c++/18201] " pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).