Bug 3773

Summary: Class and Struct Constructor Compile Errors
Product: [Retired] Red Hat Linux Reporter: stephen.morton
Component: egcsAssignee: Preston Brown <pbrown>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5.2   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-07-06 14:42:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.