uname -a
SunOS neron 5.9 Generic_112233-08 sun4u sparc SUNW,Sun-Fire-480R
g++ --version
g++ (GCC) 4.2.1
the following program fails with the error
======================================= zot.cc =================
int alloccount = 100;
struct object { int one_o; int allocstamp; };
struct gcv_object_t {
int one_o;
/* Conversion to object. */
operator object () const;
/* Conversion from object. */
gcv_object_t (object obj);
/* Conversion from fake_gcv_object. */
gcv_object_t (struct fake_gcv_object obj);
/* Uninitialized object. */
gcv_object_t ();
};
static inline int pgci_pointable (object obj) {
return obj.one_o;
}
static inline int pgci_pointable (gcv_object_t obj) {
return obj.one_o;
}
gcv_object_t STACK[1];
int main (int argc, char *argv[]) {
check_rehash_size: {
if ((pgci_pointable(STACK[0]) ==
pgci_pointable((((object){one_o:(((int)(int)(((0 << 3) + 7UL)) << 0) +
((int)(int)(0) << 7)), allocstamp: alloccount}))))) {
bad_rehash_size:
goto check_rehash_size;
}
goto bad_rehash_size;
}
}
======================================= zot.cc =================
$ g++ -c zot.cc
zot.cc: In function 'int main(int, char**)':
zot.cc:30: error: jump to label 'bad_rehash_size'
zot.cc:33: error: from here
zot.cc:29: error: enters catch block
I don't see any catch blocks here.
thanks.
--
Summary: jump to label enters catch block
Product: gcc
Version: 4.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: sds at gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35708