public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/35328]  New: ICE with firstprivate variable with invalid destructor
@ 2008-02-23 19:15 reichelt at gcc dot gnu dot org
  2008-03-10 19:49 ` [Bug c++/35328] " jakub at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-02-23 19:15 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/35328] ICE with firstprivate variable with invalid destructor
  2008-02-23 19:15 [Bug c++/35328] New: ICE with firstprivate variable with invalid destructor reichelt at gcc dot gnu dot org
@ 2008-03-10 19:49 ` jakub at gcc dot gnu dot org
  2008-03-10 20:56 ` jakub at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-03-10 19:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from jakub at gcc dot gnu dot org  2008-03-10 19:49 -------
Subject: Bug 35328

Author: jakub
Date: Mon Mar 10 19:48:20 2008
New Revision: 133087

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=133087
Log:
        PR c++/35328
        * semantics.c (finish_omp_clauses): Look through NOP_EXPR even
        if errorcount.

        * g++.dg/gomp/pr35328.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/gomp/pr35328.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/semantics.c
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35328


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/35328] ICE with firstprivate variable with invalid destructor
  2008-02-23 19:15 [Bug c++/35328] New: ICE with firstprivate variable with invalid destructor reichelt at gcc dot gnu dot org
  2008-03-10 19:49 ` [Bug c++/35328] " jakub at gcc dot gnu dot org
@ 2008-03-10 20:56 ` jakub at gcc dot gnu dot org
  2008-03-10 20:58 ` jakub at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-03-10 20:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jakub at gcc dot gnu dot org  2008-03-10 20:55 -------
Subject: Bug 35328

Author: jakub
Date: Mon Mar 10 20:54:54 2008
New Revision: 133091

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=133091
Log:
        PR c++/35328
        * semantics.c (finish_omp_clauses): Look through NOP_EXPR even
        if errorcount.

        * g++.dg/gomp/pr35328.C: New test.

Added:
    branches/gcc-4_3-branch/gcc/testsuite/g++.dg/gomp/pr35328.C
Modified:
    branches/gcc-4_3-branch/gcc/cp/ChangeLog
    branches/gcc-4_3-branch/gcc/cp/semantics.c
    branches/gcc-4_3-branch/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35328


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/35328] ICE with firstprivate variable with invalid destructor
  2008-02-23 19:15 [Bug c++/35328] New: ICE with firstprivate variable with invalid destructor reichelt at gcc dot gnu dot org
  2008-03-10 19:49 ` [Bug c++/35328] " jakub at gcc dot gnu dot org
  2008-03-10 20:56 ` jakub at gcc dot gnu dot org
@ 2008-03-10 20:58 ` jakub at gcc dot gnu dot org
  2008-03-10 20:59 ` jakub at gcc dot gnu dot org
  2008-03-13  8:14 ` reichelt at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-03-10 20:58 UTC (permalink / raw)
  To: gcc-bugs



-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jakub at gcc dot gnu dot org
                   |dot org                     |
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-03-10 20:58:09
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35328


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/35328] ICE with firstprivate variable with invalid destructor
  2008-02-23 19:15 [Bug c++/35328] New: ICE with firstprivate variable with invalid destructor reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2008-03-10 20:58 ` jakub at gcc dot gnu dot org
@ 2008-03-10 20:59 ` jakub at gcc dot gnu dot org
  2008-03-13  8:14 ` reichelt at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-03-10 20:59 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jakub at gcc dot gnu dot org  2008-03-10 20:58 -------
Fixed.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35328


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/35328] ICE with firstprivate variable with invalid destructor
  2008-02-23 19:15 [Bug c++/35328] New: ICE with firstprivate variable with invalid destructor reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2008-03-10 20:59 ` jakub at gcc dot gnu dot org
@ 2008-03-13  8:14 ` reichelt at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-03-13  8:14 UTC (permalink / raw)
  To: gcc-bugs



-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.3.1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35328


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-03-13  8:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-23 19:15 [Bug c++/35328] New: ICE with firstprivate variable with invalid destructor reichelt at gcc dot gnu dot org
2008-03-10 19:49 ` [Bug c++/35328] " jakub at gcc dot gnu dot org
2008-03-10 20:56 ` jakub at gcc dot gnu dot org
2008-03-10 20:58 ` jakub at gcc dot gnu dot org
2008-03-10 20:59 ` jakub at gcc dot gnu dot org
2008-03-13  8:14 ` reichelt at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).