Bug 21662

Summary: g++: Internal error: Segmentation fault
Product: [Retired] Red Hat Linux Reporter: bastiaan
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0   
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: 2000-12-06 14:36:30 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 bastiaan 2000-12-03 22:28:36 UTC
The following (invalid) code generates a segfault:

class ConstBug {
    public: 
    static void doBug();
};

void ConstBug::doBug() const {
}

$ g++ -c constbug.cpp
constbug.cpp:6: Internal error: Segmentation fault.

Comment 1 Jakub Jelinek 2000-12-06 14:36:27 UTC
Typo, which seems to be fixed by:
2000-10-20  Jeffrey Oldham  <oldham>

        * decl.c (revert_static_member_fn): Fixed typo.
in CVS gcc, have just added it to our patchset and it will appear in
gcc-c++-2.96-65