This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/26690] New: ICE in get_callee_fndecl, at tree.c:5806 with OpenMP


The following invalid OpenMP-C++ code snippet crashes the compiler
when compiled with -fopenmp:

=======================================
struct A
{
    A(int);
};

void foo()
{
    A a(0);
#pragma omp parallel private (a)
    ;
}
=======================================

bug.cc: In function 'void foo()':
bug.cc:9: error: no matching function for call to 'A::A()'
bug.cc:3: note: candidates are: A::A(int)
bug.cc:2: note:                 A::A(const A&)
bug.cc:9: internal compiler error: in get_callee_fndecl, at tree.c:5806
Please submit a full bug report, [etc.]


-- 
           Summary: ICE in get_callee_fndecl, at tree.c:5806 with OpenMP
           Product: gcc
           Version: 4.2.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=26690


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]