This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: GCC 2.95.2 bug report...private template function crash.
- To: "Ryan C. Gordon" <icculus at lokigames dot com>
- Subject: Re: GCC 2.95.2 bug report...private template function crash.
- From: Philipp Thomas <pthomas at suse dot de>
- Date: Sun, 30 Jan 2000 23:09:04 +0100
- Cc: gcc-bugs at gcc dot gnu dot org
- References: <Pine.LNX.4.10.10001261149190.23232-401000@icculus.lokigames-lan.com>
- Reply-To: gcc-bugs at gcc dot gnu dot org
* 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