This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
EGCS-1.1.1: Internal compiler error 980711.
- To: egcs-bugs at cygnus dot com
- Subject: EGCS-1.1.1: Internal compiler error 980711.
- From: Markus Schutz <markus dot schutz at a2i dot ch>
- Date: Fri, 19 Feb 1999 11:20:04 +0100
- Organization: a2i SA, Switzerland
Hi,
Got the following internal C++ compiler error. I know it's a syntax
error, but it isn't detected as such.
parser.C:14: Internal compiler error 980711.
parser.C:14: Please submit a full bug report to `egcs-bugs@cygnus.com'.
parser.C:14: See <URL:http://egcs.cygnus.com/faq.html#bugreport> for
details.
Line 14 reads:
N::X operator = (const X& x)
I know it should read:
N::X::operator = (const X& x)
^^
I think there is something wrong in the parser.
EGCS-1.1.1
GNU CPP version egcs-2.91.60 19981201 (egcs-1.1.1 release) (i386
Linux/ELF)
System: Linux-2.1.125 (irrelevant)
Command line:
g++ -v -save-temps parser.C
parser.C: (attached)
Source file (very simple, just for the bug, won't link).
parser.ii: (attached)
Output from command.
Regards,
Markus
--
------------------------------------------------------------------------
Markus Schütz R&D Engineer
a2i SA axsNOW® Division
3, Ch. de Mornex Phone: ++41 21 311 5634
1003 Lausanne Fax: ++41 21 311 5660
Switzerland mailto:markus.schutz@a2i.ch
http://www.axsnow.com
------------------------------------------------------------------------
namespace N
{
class X
{
public:
~X ();
X ();
X (const X& x);
X& operator = (const X& x);
};
}
N::X&
N::X operator = (const X& x)
{
}
main ()
{
N::X x;
}
# 1 "parser.C"
namespace N
{
class X
{
public:
~X ();
X ();
X (const X& x);
X& operator = (const X& x);
};
}
N::X&
N::X operator = (const X& x)
{
}
main ()
{
N::X x;
}