home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.g++.bug
- Path: sparky!uunet!cis.ohio-state.edu!galaxy.COM!jackson
- From: jackson@galaxy.COM (Bill Jackson)
- Subject: Internal compiler error 62.
- Message-ID: <9212221720.AA24873@zoe.galaxy.COM>
- Sender: gnulists@ai.mit.edu
- Organization: GNUs Not Usenet
- Distribution: gnu
- Date: Tue, 22 Dec 1992 17:20:10 GMT
- Approved: bug-g++@prep.ai.mit.edu
- Lines: 51
-
- ***** Configuration *****
- Machine: Sun 4/310 (a modified 4/110)
- OS: SunOS 4.1.1
- Compiler: gcc version 2.3.1
-
-
- ***** Source file test.cc *****
- class ClassA {
- public:
- typedef ClassA& (*PMFV)(const char*);
- static PMFV setMapper(PMFV);
- static PMFV _mapper;
- };
-
-
- class ClassB {
- public:
- typedef ClassB& (*PMFV)(const char*);
- };
-
-
- ClassA::PMFV ClassA::setMapper(ClassA::PMFV newFunc)
- {
- PMFV oldFunc = _mapper;
- _mapper = newFunc;
-
- return oldFunc;
- }
-
-
- ***** Output from gcc *****
- gcc -g -c test.cc
- test.cc: In function `class ClassA&(* static ClassA::setMapper (auto class ClassA&(*)(const char *)))(const char *)':
- test.cc:17: Internal compiler error 62.
- test.cc:17: Please report this to `bug-g++@prep.ai.mit.edu'.
-
-
- ***** Comments *****
- If line 17 is changed from
- PMFV oldFunc = _mapper;
- to
- ClassA::PMFV oldFunc = _mapper;
- then the compiler does not report an error.
-
- -------------------------------------------------------------------------
- William E. Jackson | Internet: wjackson%xphoton.uucp@gordian.COM
- Excellon Automation | UUCP: ...!sun!sunkist!xphoton!wjackson
- 242751 Crenshaw Blvd. | Voice: (310) 534-6715
- Torrance, CA 90505 | FAX: (310) 534-6707
- -------------------------------------------------------------------------
-
-