This is the mail archive of the gcc-bugs@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]

Re: GCC 2.95.2 bug report...private template function crash.


* Ryan C. Gordon (icculus@lokigames.com) [20000126 20:58]:

> The command line used was:
> 
>  gcc -v --save-temps crackpipe.cpp 2> stderr.txt

First of all, use g++ or c++ for compiling C++ code. While gcc will call
cc1plus for compiling C++ code, it won't link in needed libs like libstdc++.

With the current CVS version I get the following:

crackpipe.cpp: In function `int main ()':
crackpipe.cpp:41: initializing non-const `Crackrock &' with `int' will use a temporary
crackpipe.cpp:43: request for member `SmokeTheRock' in `MyPipe', which is of non-aggregate type `Crackpipe () ()'
crackpipe.cpp: In method `Void crackpipe::putInPipe (_T) [with _T = crackrock]':
crackpipe.cpp:29:   instantiated from here
crackpipe.cpp:35: no match for `Crackrock & != int'

So it seems the bug has been fixed. On the rest I can't comment as I'm
rather a newbie in regards to C++.

Philipp

-- 
Philipp Thomas <pthomas@suse.de>
SuSE GmbH, Deutschherrenstrasse 15-29, 90429 Nuremberg

Life is an ocean and love is a boat,
in troubled waters, it keeps us afloat
                                   Christy Moore

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