g++ 3.0.4 - alpha linux 7.0 - odd optimization compile bug

James W. McKelvey mckelvey@maskull.com
Sat Feb 23 15:38:00 GMT 2002


This code compiles and runs under Compaq cxx, so I'm pretty sure it's OK.
It also compiles and runs under 3.0.4 without optimization. If I add any
degree of optimization past zero, I get the errors below. It appears to be
losing knowledge of previously encountered typedefs.

What's really odd is that compiling the .ii file results in the same errors
even without optimization.



Reading specs from
/usr/local/lib/gcc-lib/alphaev56-unknown-linux-gnu/3.0.4/specs Configured
with: ../gcc-3.0.4/configure --enable-languages=c++ Thread model: single
gcc version 3.0.4
 /usr/local/lib/gcc-lib/alphaev56-unknown-linux-gnu/3.0.4/cc1plus -fpreprocessed PatternMasterTop.ii -quiet -dumpbase PatternMasterTop.ii -version -o /tmp/ccmf31Du.s
GNU CPP version 3.0.4 (cpplib) (Alpha GNU/Linux for ELF)
GNU C++ version 3.0.4 (alphaev56-unknown-linux-gnu)
	compiled by GNU C version 3.0.4.
PatternMasterTop.ii:37416: parse error before `&' token
PatternMasterTop.ii:37417: no `PatternMaster::string_t 
   PatternMaster::PatternMasterTop::dcgettext(...)' member function declared in 
   class `PatternMaster::PatternMasterTop'
PatternMasterTop.ii: In member function `PatternMaster::string_t 
   PatternMaster::PatternMasterTop::dcgettext(...)':
PatternMasterTop.ii:37418: `text' undeclared (first use this function)
PatternMasterTop.ii:37418: (Each undeclared identifier is reported only once 
   for each function it appears in.)
PatternMasterTop.ii: In static member function `static const 
   PatternMaster::string_t& PatternMaster::PatternMasterTop::character()':
PatternMasterTop.ii:37790: `class PatternMaster::PatternMasterTop' has no 
   member named `compute_character_sets'
PatternMasterTop.ii: In static member function `static const 
   PatternMaster::string_t& PatternMaster::PatternMasterTop::char_name(unsigned 
   char)':
PatternMasterTop.ii:37803: `class PatternMaster::PatternMasterTop' has no 
   member named `compute_character_sets'
PatternMasterTop.ii: 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.ii:37826: no method 
   `PatternMaster::PatternMasterTop::dcgettext'

-- 
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: PatternMasterTop.ii.bz2
Type: application/octet-stream
Size: 100929 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20020223/b3152e00/attachment.obj>


More information about the Gcc-bugs mailing list