Article View: gnu.g++.bug
Article #747pointer types
From: Tomas G. Rokicki
Date: Fri, 19 Jan 1990 00:00
Date: Fri, 19 Jan 1990 00:00
25 lines
857 bytes
857 bytes
Never mind, 1.36.3 fixes the problem, except that
&funcname
doesn't work, but just
funcname
does. (Interestingly, the following segv's cc1plus:)
typedef int *(evalftype)(int, int) ;
class foo {
int t ;
evalftype *f ;
public:
foo(int a) { t = a ; f = 0 ; }
foo(evalftype *b, int a) { t = a ; f = b ; }
} ;
static int *bar(int a, int b) {
int *p = new int ;
*p = a - b ;
return p ;
}
foo *baz() {
return new foo(&bar, 12) ;
}
Technical Details
Message-ID:
<1990Jan19.000041.22756@Neon.Stanford.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!mcgill-vision!bloom-beacon!shelby!neon!rokickiShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!mcgill-vision!bloom-beacon!shelby!neon!rokicki From: rokicki@Neon.Stanford.EDU (Tomas G. Rokicki) Newsgroups: gnu.g++.bug Subject: pointer types Message-ID: <1990Jan19.000041.22756@Neon.Stanford.EDU> Date: 19 Jan 90 00:00:41 GMT Organization: Computer Science Department, Stanford University Lines: 25