First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 95835
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: GCC Porting Team <gcc-porting@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Chen Xiangyang <chenxy@opencjk.org>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
gperf-3.0.1-gcc4.patch a patch that should fix the bug patch Chen Xiangyang 2005-06-11 22:20 0000 424 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 95835 depends on: Show dependency tree
Bug 95835 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-06-11 22:19 0000
src/positions.cc need forward declaration.

Reproducible: Always
Steps to Reproduce:
1.untar gperf-3.0.1.tar.gz
2../configure
3.make

Actual Results:  
g++ -g -O2 -I. -I./../lib -c ./positions.cc
./positions.h:74: error: 'PositionIterator' does not name a type
./positions.h:77: error: 'PositionIterator' does not name a type
./positions.h:79: error: 'PositionReverseIterator' does not name a type
./positions.h:82: error: 'PositionReverseIterator' does not name a type
./positions.icc:154: error: no 'PositionIterator Positions::iterator() const'
member function declared in class 'Positions'
./positions.icc:162: error: prototype for 'PositionIterator
Positions::iterator(int) const' does not match any in class 'Positions'
./positions.icc:154: error: candidate is: PositionIterator Positions::iterator()
const
./positions.icc:169: error: no 'PositionReverseIterator Positions::reviterator()
const' member function declared in class 'Positions'
./positions.icc:177: error: prototype for 'PositionReverseIterator
Positions::reviterator(int) const' does not match any in class 'Positions'
./positions.icc:169: error: candidate is: PositionReverseIterator
Positions::reviterator() const
make: *** [positions.o] Error 1


Expected Results:  
compiled successfully

------- Comment #1 From Chen Xiangyang 2005-06-11 22:20:33 0000 -------
Created an attachment (id=61094) [edit]
a patch that should fix the bug

------- Comment #2 From Chen Xiangyang 2005-06-11 22:22:22 0000 -------
sorry. it's src/positions.h that needs forward declarations.

------- Comment #3 From Mark Loeser 2005-06-15 19:43:37 0000 -------
thanks for the patch, its fixed in the tree

First Last Prev Next    No search results available      Search page      Enter new bug