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]
Other format: [Raw text]

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


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

Attachment: PatternMasterTop.ii.bz2
Description: Binary data


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