public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/59627] New: ICE with OpenMP "declare reduction" and -flto
@ 2013-12-30 13:21 reichelt at gcc dot gnu.org
  2014-07-01 10:20 ` [Bug c++/59627] " paolo.carlini at oracle dot com
  2015-03-18 20:12 ` paolo.carlini at oracle dot com
  0 siblings, 2 replies; 3+ messages in thread
From: reichelt at gcc dot gnu.org @ 2013-12-30 13:21 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 59627
           Summary: ICE with OpenMP "declare reduction" and -flto
           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 valid code snippet (compiled with "-fopenmp -flto")
triggers an ICE on trunk since 2013-10-11:

==============================================================
struct A { int i; };

void foo()
{
  A a;
  #pragma omp declare reduction (+: A: omp_out.i += omp_in.i)
  #pragma omp parallel reduction (+: a)
  ;
}
==============================================================

bug.cc:6:11: internal compiler error: in discriminator_for_local_entity, at
cp/mangle.c:1745
   #pragma omp declare reduction (+: A: omp_out.i += omp_in.i)
           ^
0x73a658 discriminator_for_local_entity
        ../../gcc/gcc/cp/mangle.c:1745
0x73a658 write_local_name
        ../../gcc/gcc/cp/mangle.c:1833
0x73a658 write_name
        ../../gcc/gcc/cp/mangle.c:847
0x73a92b write_encoding
        ../../gcc/gcc/cp/mangle.c:714
0x743398 mangle_decl_string
        ../../gcc/gcc/cp/mangle.c:3433
0x743577 get_mangled_id
        ../../gcc/gcc/cp/mangle.c:3455
0x743577 mangle_decl(tree_node*)
        ../../gcc/gcc/cp/mangle.c:3478
0xd91200 decl_assembler_name(tree_node*)
        ../../gcc/gcc/tree.c:600
0xd92c46 assign_assembler_name_if_neeeded(tree_node*)
        ../../gcc/gcc/tree.c:5505
0xdacf2e free_lang_data_in_cgraph
        ../../gcc/gcc/tree.c:5560
0xdacf2e free_lang_data
        ../../gcc/gcc/tree.c:5597
0xdacf2e execute
        ../../gcc/gcc/tree.c:5646
Please submit a full bug report, [etc.]

Jakub, this appeared right after your big OpenMP 4.0 patch
(where "omp declare reduction" was introduced):

2013-10-11  Jakub Jelinek  <jakub@redhat.com>

    * decl.c (duplicate_decls): Error out for redeclaration of UDRs.
    (declare_simd_adjust_this): New function.
    (grokfndecl): If "omp declare simd" attribute is present,
    call declare_simd_adjust_this if needed and
    c_omp_declare_simd_clauses_to_numbers.
        [...]

Would you mind having a look?


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

* [Bug c++/59627] ICE with OpenMP "declare reduction" and -flto
  2013-12-30 13:21 [Bug c++/59627] New: ICE with OpenMP "declare reduction" and -flto reichelt at gcc dot gnu.org
@ 2014-07-01 10:20 ` paolo.carlini at oracle dot com
  2015-03-18 20:12 ` paolo.carlini at oracle dot com
  1 sibling, 0 replies; 3+ messages in thread
From: paolo.carlini at oracle dot com @ 2014-07-01 10:20 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59627

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Jakub, did you notice this?


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

* [Bug c++/59627] ICE with OpenMP "declare reduction" and -flto
  2013-12-30 13:21 [Bug c++/59627] New: ICE with OpenMP "declare reduction" and -flto reichelt at gcc dot gnu.org
  2014-07-01 10:20 ` [Bug c++/59627] " paolo.carlini at oracle dot com
@ 2015-03-18 20:12 ` paolo.carlini at oracle dot com
  1 sibling, 0 replies; 3+ messages in thread
From: paolo.carlini at oracle dot com @ 2015-03-18 20:12 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59627

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-03-18
     Ever confirmed|0                           |1


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

end of thread, other threads:[~2015-03-18 20:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-30 13:21 [Bug c++/59627] New: ICE with OpenMP "declare reduction" and -flto reichelt at gcc dot gnu.org
2014-07-01 10:20 ` [Bug c++/59627] " paolo.carlini at oracle dot com
2015-03-18 20:12 ` paolo.carlini at oracle dot com

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).