This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: internal error in cp-lang.c


Op ma 24-02-2003, om 20:57 schreef Karol Szkudlarek:
> Hello!
> 
> I am trying to compile following t.cpp program:
> 
> #include <qstring.h>
> int a()
> {
>    QString s;
>    s.isEmpty() ? s+"aa":s;
> }
> 
> with command:
> 
> g++ -c  -I/usr/share/qt3/include t.cpp
> 
> and I've got the internal compiler error:
> 
> t.cpp: In function `int a()':
> t.cpp:5: error: non-lvalue in unary `&'

This is PR c++/9440.  You're not exactly the first to notice, everybody
seems to be hit by this bug :-/

Greetz
Steven



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]