public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/35337]  New: Broken diagnostic for firstprivate clause
@ 2008-02-23 19:53 reichelt at gcc dot gnu dot org
  2008-03-10 16:05 ` [Bug c++/35337] " jakub at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-02-23 19:53 UTC (permalink / raw)
  To: gcc-bugs

A broken diagnostic is issued for the following invalid code snippet since
GCC 4.2.0:

====================================================
struct A {};

void foo()
{
  #pragma omp parallel firstprivate(A)
    ;
}
====================================================

bug.cc: In function 'void foo()':
bug.cc:5: error: '#'type_decl' not supported by dump_expr#<expression error>'
is not a variable in clause 'firstprivate'

This is related to PR31748 and PR35244.


-- 
           Summary: Broken diagnostic for firstprivate clause
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: diagnostic, monitored, openmp
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org
 BugsThisDependsOn: 31748,35244


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


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

* [Bug c++/35337] Broken diagnostic for firstprivate clause
  2008-02-23 19:53 [Bug c++/35337] New: Broken diagnostic for firstprivate clause reichelt at gcc dot gnu dot org
@ 2008-03-10 16:05 ` jakub at gcc dot gnu dot org
  2008-03-10 19:44 ` jakub at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-03-10 16:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from jakub at gcc dot gnu dot org  2008-03-10 16:04 -------
Testing a patch.


-- 

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 16:04:37
               date|                            |


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


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

* [Bug c++/35337] Broken diagnostic for firstprivate clause
  2008-02-23 19:53 [Bug c++/35337] New: Broken diagnostic for firstprivate clause reichelt at gcc dot gnu dot org
  2008-03-10 16:05 ` [Bug c++/35337] " jakub at gcc dot gnu dot org
@ 2008-03-10 19:44 ` jakub at gcc dot gnu dot org
  2008-03-10 20:55 ` jakub at gcc dot gnu dot org
  2008-03-10 20:58 ` jakub at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-03-10 19:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jakub at gcc dot gnu dot org  2008-03-10 19:44 -------
Subject: Bug 35337

Author: jakub
Date: Mon Mar 10 19:43:16 2008
New Revision: 133086

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=133086
Log:
        PR c++/35337
        * semantics.c (finish_omp_clauses): Use %qD instead of %qE for
        DECL_P in not a variable and appears more than once error messages.

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

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


-- 


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


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

* [Bug c++/35337] Broken diagnostic for firstprivate clause
  2008-02-23 19:53 [Bug c++/35337] New: Broken diagnostic for firstprivate clause reichelt at gcc dot gnu dot org
  2008-03-10 16:05 ` [Bug c++/35337] " jakub at gcc dot gnu dot org
  2008-03-10 19:44 ` jakub at gcc dot gnu dot org
@ 2008-03-10 20:55 ` jakub at gcc dot gnu dot org
  2008-03-10 20:58 ` jakub at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-03-10 20:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jakub at gcc dot gnu dot org  2008-03-10 20:54 -------
Subject: Bug 35337

Author: jakub
Date: Mon Mar 10 20:53:35 2008
New Revision: 133090

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=133090
Log:
        PR c++/35337
        * semantics.c (finish_omp_clauses): Use %qD instead of %qE for
        DECL_P in not a variable and appears more than once error messages.

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

Added:
    branches/gcc-4_3-branch/gcc/testsuite/g++.dg/gomp/pr35337.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=35337


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

* [Bug c++/35337] Broken diagnostic for firstprivate clause
  2008-02-23 19:53 [Bug c++/35337] New: Broken diagnostic for firstprivate clause reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2008-03-10 20:55 ` jakub at gcc dot gnu dot org
@ 2008-03-10 20:58 ` jakub at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-03-10 20:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jakub at gcc dot gnu dot org  2008-03-10 20:57 -------
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=35337


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

end of thread, other threads:[~2008-03-10 20:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-23 19:53 [Bug c++/35337] New: Broken diagnostic for firstprivate clause reichelt at gcc dot gnu dot org
2008-03-10 16:05 ` [Bug c++/35337] " jakub at gcc dot gnu dot org
2008-03-10 19:44 ` jakub at gcc dot gnu dot org
2008-03-10 20:55 ` jakub at gcc dot gnu dot org
2008-03-10 20:58 ` jakub 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).