Bug 3773 - Class and Struct Constructor Compile Errors
Summary: Class and Struct Constructor Compile Errors
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: egcs
Version: 5.2
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Preston Brown
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 1999-06-28 07:48 UTC by stephen.morton
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 1999-07-06 14:42:42 UTC

Attachments (Terms of Use)

Description stephen.morton 1999-06-28 07:48:55 UTC
The following code -

class class_x {
   int y;

   class_x (int y) : class_x::y (y) {};

-  gives an error "No type named y in class class_x".

Comment 1 Cristian Gafton 1999-07-02 21:54:59 UTC
assigned to pbrown. He might compute what that code wants to do.

Comment 2 Preston Brown 1999-07-06 14:42:59 UTC
I compute (however you should probably make the constructor public)
however fixing this bug is beyond the realm of my comprehension.  Work
arounds include of course changing the name of the parameter you pass
into the constructor, or the name of the member variable.  Hopefully
this will be fixed in a later release of the egcs compiler, but it is
rather messy.  Please also report this bug to the egcs team.

Note You need to log in before you can comment on or make changes to this bug.