public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/32507] New: internal compiler error
@ 2007-06-25 21:37 magnetudinbuda at yahoo dot com
2007-06-25 21:41 ` [Bug c++/32507] " magnetudinbuda at yahoo dot com
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: magnetudinbuda at yahoo dot com @ 2007-06-25 21:37 UTC (permalink / raw)
To: gcc-bugs
g++ -g source_c++_iostream_test01.cpp
-->
source_c++_iostream_test01.cpp:80 internal compiler error: in dwarf2out_finish,
at dwarf2out.c:14292
source_c++_iostream_test01.cpp :
#include <cassert>
#include <iostream>
#include <sstream>
#include <limits>
using namespace std;
static
void
PerformTest01 () {
stringstream objStream;
objStream << " 1234\n" ;
int intValue ;
objStream >> intValue ;
char charValue = objStream . get ();
assert (1234 == intValue && '\n' == charValue);
}
static
void
PerformTest02 () {
class Manipulators {
public:
static istream & IgnoreSpace (istream & anInputStream) {
assert (ios_base :: goodbit == anInputStream .
exceptions ());
assert (anInputStream . good ());
char aChar;
while (anInputStream . good ()) {
aChar = anInputStream . peek ();
if (anInputStream . good ()) {
if (' ' == aChar) {
aChar = anInputStream . get ();
}
}
}
}
static istream & IgnoreLine (istream & anInputStream) {
assert (ios_base :: goodbit == anInputStream .
exceptions ());
assert (anInputStream . good ());
anInputStream . ignore (numeric_limits < streamsize >
:: max (), '\n');
}
private:
Manipulators () {}
};
stringstream objStream;
assert (objStream . good ());
assert (ios_base :: goodbit == objStream . exceptions ());
int intValue;
char charValue;
objStream << " a b c \n \n 123";
assert (objStream . good ());
objStream >> Manipulators :: IgnoreLine ;
assert (objStream . good ());
charValue = objStream . get ();
assert (objStream . good ());
assert ('\n' == charValue);
objStream >> Manipulators :: IgnoreSpace ;
assert (objStream . good ());
charValue = objStream . get ();
assert (objStream . good ());
assert ('\n' == charValue);
charValue = objStream . peek ();
assert (objStream . good ());
assert (' ' == charValue);
objStream >> intValue;
assert (objStream . eof ());
assert (123 == intValue);
}
int main () {
int nReturnCode = 0;
try {
PerformTest02 ();
} catch (...) {
cerr << "Exception!" << endl;
nReturnCode = 1;
}
return nReturnCode;
}
--
Summary: internal compiler error
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: magnetudinbuda at yahoo dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32507
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/32507] internal compiler error
2007-06-25 21:37 [Bug c++/32507] New: internal compiler error magnetudinbuda at yahoo dot com
@ 2007-06-25 21:41 ` magnetudinbuda at yahoo dot com
2007-06-26 20:53 ` [Bug debug/32507] " pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: magnetudinbuda at yahoo dot com @ 2007-06-25 21:41 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from magnetudinbuda at yahoo dot com 2007-06-25 21:41 -------
Created an attachment (id=13788)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13788&action=view)
the file that caused 'internal compiler error'
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32507
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug debug/32507] internal compiler error
2007-06-25 21:37 [Bug c++/32507] New: internal compiler error magnetudinbuda at yahoo dot com
2007-06-25 21:41 ` [Bug c++/32507] " magnetudinbuda at yahoo dot com
@ 2007-06-26 20:53 ` pinskia at gcc dot gnu dot org
2007-06-26 23:33 ` pinskia at gcc dot gnu dot org
2007-12-27 16:30 ` [Bug debug/32507] [4.1 regression] ICE with typedef in local class reichelt at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-06-26 20:53 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|major |normal
Component|c++ |debug
Keywords| |ice-on-valid-code
Known to work| |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32507
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug debug/32507] internal compiler error
2007-06-25 21:37 [Bug c++/32507] New: internal compiler error magnetudinbuda at yahoo dot com
2007-06-25 21:41 ` [Bug c++/32507] " magnetudinbuda at yahoo dot com
2007-06-26 20:53 ` [Bug debug/32507] " pinskia at gcc dot gnu dot org
@ 2007-06-26 23:33 ` pinskia at gcc dot gnu dot org
2007-12-27 16:30 ` [Bug debug/32507] [4.1 regression] ICE with typedef in local class reichelt at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-06-26 23:33 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2007-06-26 23:33 -------
Reduced testcase:
namespace a
{
class basic_stringstream {};
typedef basic_stringstream istream;
typedef basic_stringstream stringstream;
}
using namespace a;
void PerformTest02 ()
{
struct Manipulators
{
static istream & IgnoreSpace (istream & anInputStream) {}
};
stringstream objStream;
Manipulators::IgnoreSpace(objStream);
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32507
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug debug/32507] [4.1 regression] ICE with typedef in local class
2007-06-25 21:37 [Bug c++/32507] New: internal compiler error magnetudinbuda at yahoo dot com
` (2 preceding siblings ...)
2007-06-26 23:33 ` pinskia at gcc dot gnu dot org
@ 2007-12-27 16:30 ` reichelt at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-12-27 16:30 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from reichelt at gcc dot gnu dot org 2007-12-27 16:30 -------
The bug appeared in GCC 4.0.0, but is already fixed on the 4.1 branch, on the
4.2 branch (in version 4.2.1) and on mainline.
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Status|UNCONFIRMED |RESOLVED
Known to fail| |4.0.0 4.0.4 4.1.0 4.1.1
| |4.1.2 4.2.0
Known to work|4.3.0 |3.4.6 4.1.3 4.2.1 4.2.2
| |4.3.0
Resolution| |FIXED
Summary|internal compiler error |[4.1 regression] ICE with
| |typedef in local class
Target Milestone|--- |4.1.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32507
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-12-27 16:30 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-25 21:37 [Bug c++/32507] New: internal compiler error magnetudinbuda at yahoo dot com
2007-06-25 21:41 ` [Bug c++/32507] " magnetudinbuda at yahoo dot com
2007-06-26 20:53 ` [Bug debug/32507] " pinskia at gcc dot gnu dot org
2007-06-26 23:33 ` pinskia at gcc dot gnu dot org
2007-12-27 16:30 ` [Bug debug/32507] [4.1 regression] ICE with typedef in local class reichelt 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).