Article View: gnu.g++.bug
Article #972g++-2.2.2 does not support label references
From: David Kastrup
Date: Tue, 15 Sep 1992 16:50
Date: Tue, 15 Sep 1992 16:50
15 lines
1222 bytes
1222 bytes
gcc has this functionality using the unary && operator. g++ hasn't.
The following does not compile under g++:
main() {
void *p;
gurke: p = &&gurke;
}
Reading specs from /usr/local/lib/gcc-lib/i386-isc-isc/2.2.2/specs
gcc version 2.2.2
/usr/local/lib/gcc-lib/i386-isc-isc/2.2.2/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -Dunix -Di386 -D__unix__ -D__i386__ -D__unix -D__i386 bug.cc /usr/tmp/cca01653.i
GNU CPP version 2.2.2 (80386, ATT syntax)
/usr/local/lib/gcc-lib/i386-isc-isc/2.2.2/cc1plus /usr/tmp/cca01653.i -quiet -dumpbase bug.cc -version -o /usr/tmp/cca01653.s
GNU C++ version 2.2.2 (80386, ATT syntax) compiled by GNU C version 2.2.2.
bug.cc: In function `int main ()':
bug.cc:3: parse error before `&&'
Technical Details
Message-ID:
<9209151250.AA07284@messua>Path:
arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!sdd.hp.com!swrinde!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!pool.INformatik.rwth-aachen.DE!dakShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!sdd.hp.com!swrinde!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!pool.INformatik.rwth-aachen.DE!dak From: dak@pool.INformatik.rwth-aachen.DE (David Kastrup) Newsgroups: gnu.g++.bug Subject: g++-2.2.2 does not support label references Message-ID: <9209151250.AA07284@messua> Date: 15 Sep 92 16:50:42 GMT Sender: gnulists@ai.mit.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 15 Approved: bug-g++@prep.ai.mit.edu