From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25824 invoked by alias); 26 Mar 2008 18:57:26 -0000 Received: (qmail 25488 invoked by uid 48); 26 Mar 2008 18:56:46 -0000 Date: Wed, 26 Mar 2008 18:57:00 -0000 Subject: [Bug c++/35708] New: jump to label enters catch block X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "sds at gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-03/txt/msg02089.txt.bz2 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