From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28351 invoked by alias); 23 Feb 2008 19:15:23 -0000 Received: (qmail 27945 invoked by uid 48); 23 Feb 2008 19:14:42 -0000 Date: Sat, 23 Feb 2008 19:15:00 -0000 Subject: [Bug c++/35328] New: ICE with firstprivate variable with invalid destructor X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "reichelt at gcc dot 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-02/txt/msg02477.txt.bz2 The following invalid code snippet triggers an ICE since GCC 4.2.0 when compiled with "-fopenmp": ==================================================== struct A { ~A()(); }; void foo() { A a; #pragma omp parallel firstprivate(a) ; } ==================================================== bug.cc:3: error: 'A' declared as function returning a function bug.cc: In function 'void foo()': bug.cc:9: internal compiler error: in get_callee_fndecl, at tree.c:6597 Please submit a full bug report, [etc.] -- Summary: ICE with firstprivate variable with invalid destructor Product: gcc Version: 4.4.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code, error-recovery, monitored, openmp Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: reichelt at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35328