public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/58703] New: [4.9 Regression] ICE with invalid types in OpenMP declare reduction clause
@ 2013-10-12 21:16 reichelt at gcc dot gnu.org
  2013-10-12 21:16 ` [Bug c++/58703] " reichelt at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: reichelt at gcc dot gnu.org @ 2013-10-12 21:16 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 58703
           Summary: [4.9 Regression] ICE with invalid types in OpenMP
                    declare reduction clause
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: reichelt at gcc dot gnu.org

The following invalid code snippet (compiled with "-fopenmp") triggers an ICE
on trunk:

====================================================================
#pragma omp declare reduction (+ : char[] : omp_out += omp_in)
#pragma omp declare reduction (+ : char() : omp_out += omp_in)
====================================================================

bug.cc:1:36: error: function or array type 'char []' in '#pragma omp declare
reduction'
 #pragma omp declare reduction (+ : char[] : omp_out += omp_in)
                                    ^
bug.cc:2:36: error: function or array type 'char()' in '#pragma omp declare
reduction'
 #pragma omp declare reduction (+ : char() : omp_out += omp_in)
                                    ^
bug.cc:2:63: internal compiler error: in cp_parser_translation_unit, at
cp/parser.c:4019
 #pragma omp declare reduction (+ : char() : omp_out += omp_in)
                                                               ^
0x66b3b0 cp_parser_translation_unit
        ../../gcc/gcc/cp/parser.c:4018
0x66b3b0 c_parse_file()
        ../../gcc/gcc/cp/parser.c:30962
0x787f73 c_common_parse_file()
        ../../gcc/gcc/c-family/c-opts.c:1046
Please submit a full bug report, [etc.]


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

end of thread, other threads:[~2014-02-05 16:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-12 21:16 [Bug c++/58703] New: [4.9 Regression] ICE with invalid types in OpenMP declare reduction clause reichelt at gcc dot gnu.org
2013-10-12 21:16 ` [Bug c++/58703] " reichelt at gcc dot gnu.org
2013-10-14  9:02 ` rguenth at gcc dot gnu.org
2014-02-03 11:04 ` paolo.carlini at oracle dot com
2014-02-03 13:06 ` jakub at gcc dot gnu.org
2014-02-05 15:32 ` jakub at gcc dot gnu.org
2014-02-05 16:14 ` jakub at gcc dot gnu.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).