linux alpha; 3.0.3 prerelease; failure under -O3
James W. McKelvey
mckelvey@maskull.com
Sun Dec 16 21:08:00 GMT 2001
The attached compiles fine without optimization. I think the code is OK,
it works under the Compaq CXX compiler, with and without optimization.
Reading specs from
/usr/local/lib/gcc-lib/alphaev56-unknown-linux-gnu/3.0.3/specs Configured
with: ../gcc-3.0.3-20011213/configure --enable-languages=c++ Thread model:
single gcc version 3.0.3 20011213 (prerelease)
/usr/local/lib/gcc-lib/alphaev56-unknown-linux-gnu/3.0.3/cpp0 -lang-c++ -D__GNUG__=3 -D__GXX_DEPRECATED -D__EXCEPTIONS -D__GXX_ABI_VERSION=100 -D__STRICT_ANSI__ -trigraphs -$ -v -MM -MF PatternMasterTop.d -MQ PatternMasterTop.o -D__GNUC__=3 -D__GNUC_MINOR__=0 -D__GNUC_PATCHLEVEL__=3 -D__linux__ -D__unix__ -D_LONGLONG -D__alpha__ -D__ELF__ -D__linux -D__unix -Asystem=linux -D__OPTIMIZE__ -D__STDC_HOSTED__=1 -Wall -W -Wold-style-cast -Wsign-promo -Wpointer-arith -Wcast-qual -Wconversion -Wmissing-prototypes -Wwrite-strings -Winline -Woverloaded-virtual -pedantic -D_GNU_SOURCE -D__LANGUAGE_C_PLUS_PLUS__ -D__LANGUAGE_C_PLUS_PLUS -D__cplusplus -Acpu=alpha -Amachine=alpha -D__alpha -D__alpha__ -D__alpha_ev5__ -Acpu=ev5 -D__alpha_bwx__ -Acpu=bwx -DNDEBUG PatternMasterTop.cc PatternMasterTop.ii
GNU CPP version 3.0.3 20011213 (prerelease) (cpplib) (Alpha GNU/Linux for ELF)
ignoring nonexistent directory "/usr/local/alphaev56-unknown-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include/g++-v3
/usr/local/include/g++-v3/alphaev56-unknown-linux-gnu
/usr/local/include/g++-v3/backward
/usr/local/include
/usr/local/lib/gcc-lib/alphaev56-unknown-linux-gnu/3.0.3/include
/usr/include
End of search list.
/usr/local/lib/gcc-lib/alphaev56-unknown-linux-gnu/3.0.3/cc1plus -fpreprocessed PatternMasterTop.ii -trigraphs -$ -quiet -dumpbase PatternMasterTop.cc -ansi -O3 -Wall -W -Wold-style-cast -Wsign-promo -Wpointer-arith -Wcast-qual -Wconversion -Wmissing-prototypes -Wwrite-strings -Winline -Woverloaded-virtual -pedantic -ansi -version -fPIC -fno-common -fstrict-aliasing -fimplicit-templates -o PatternMasterTop.s
GNU CPP version 3.0.3 20011213 (prerelease) (cpplib) (Alpha GNU/Linux for ELF)
GNU C++ version 3.0.3 20011213 (prerelease) (alphaev56-unknown-linux-gnu)
compiled by GNU C version 3.0.3 20011213 (prerelease).
PatternMasterTop.cc:58: parse error before `&' token
PatternMasterTop.cc:59: no `PatternMaster::string_t
PatternMaster::PatternMasterTop::dcgettext(...)' member function declared in
class `PatternMaster::PatternMasterTop'
PatternMasterTop.cc: In member function `PatternMaster::string_t
PatternMaster::PatternMasterTop::dcgettext(...)':
PatternMasterTop.cc:60: `text' undeclared (first use this function)
PatternMasterTop.cc:60: (Each undeclared identifier is reported only once for
each function it appears in.)
PatternMasterTop.cc: In function `const PatternMaster::string_t&
PatternMaster::image(PatternMaster::value_t, const
PatternMaster::PatternMasterTop&, const PatternMaster::string_t&, const
PatternMaster::string_t&, long unsigned int)':
PatternMasterTop.cc:466: cannot call member function `PatternMaster::string_t
PatternMaster::PatternMasterTop::dcgettext(...)' without object
--
All I have is a voice to undo the folded lie,
The romantic lie in the brain of the sensual man-in-the-street
And the lie of Authority whose buildings grope the sky
-- W.H. Auden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.tar.bz2
Type: application/octet-stream
Size: 141607 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20011216/bfb21193/attachment.obj>
More information about the Gcc-bugs
mailing list