public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/107558] New: [10/11/12/13 Regression] ICE in fld_incomplete_type_of, at ipa-free-lang-data.cc:258
@ 2022-11-07 18:14 gscfq@t-online.de
  2022-11-08  9:30 ` [Bug c++/107558] [10/11/12/13 Regression] ICE in fld_incomplete_type_of with -fmerge-all-constants and openmp and LTO rguenth at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: gscfq@t-online.de @ 2022-11-07 18:14 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 107558
           Summary: [10/11/12/13 Regression] ICE in
                    fld_incomplete_type_of, at ipa-free-lang-data.cc:258
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Started with r9, between 20200508 and 20200612, reduced from file
llvm-project-llvmorg-14.0.6/clang/test/OpenMP/nvptx_lambda_capturing.cpp :


$ cat z1.cc
template <typename T>
int foo(const T &t) {
  #pragma omp target parallel
  t();
  return 0;
}
struct S {
  int a = 15;
  int foo() {
    auto &&L = [&]() { return a; };
#pragma omp target
    L();
#pragma omp target parallel
    L();
    return a + ::foo(L);
  }
} s;
int main(int argc, char **argv) {
  int &b = argc;
  int &&c = 1;
  int *d = &argc;
  int a;
  auto &&L = [&]() { return argc + b + c + reinterpret_cast<long int>(d) + a;
};
#pragma omp target firstprivate(argc) map(to : a)
  L();
#pragma omp target parallel
  L();
  return argc + s.foo();
}


$ cat z2.cc
  int a = 15;
  int foo() {
    auto &&L = [&]() { return a; };
#pragma omp target parallel
    L();
}


$ gcc-13-20221106 -c z2.cc -fopenmp -flto -fmerge-all-constants
z2.cc: In function 'int foo()':
z2.cc:6:1: warning: no return statement in function returning non-void
[-Wreturn-type]
    6 | }
      | ^
during IPA pass: *free_lang_data
z2.cc: At global scope:
z2.cc:6:1: internal compiler error: in fld_incomplete_type_of, at
ipa-free-lang-data.cc:258
0x1aa1387 fld_incomplete_type_of
        ../../gcc/ipa-free-lang-data.cc:257
0x1aa26dd fld_simplified_type
        ../../gcc/ipa-free-lang-data.cc:344
0x1aa26dd free_lang_data_in_decl
        ../../gcc/ipa-free-lang-data.cc:653
0x1aa26dd free_lang_data_in_cgraph
        ../../gcc/ipa-free-lang-data.cc:1068
0x1aa26dd free_lang_data
        ../../gcc/ipa-free-lang-data.cc:1109
0x1aa26dd execute
        ../../gcc/ipa-free-lang-data.cc:1176

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

end of thread, other threads:[~2023-05-04  7:21 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-07 18:14 [Bug c++/107558] New: [10/11/12/13 Regression] ICE in fld_incomplete_type_of, at ipa-free-lang-data.cc:258 gscfq@t-online.de
2022-11-08  9:30 ` [Bug c++/107558] [10/11/12/13 Regression] ICE in fld_incomplete_type_of with -fmerge-all-constants and openmp and LTO rguenth at gcc dot gnu.org
2022-11-21 12:31 ` [Bug c++/107558] [10/11/12/13 Regression] ICE in fld_incomplete_type_of with -fmerge-all-constants and openmp and LTO since r11-16-ga2f32550a085984f marxin at gcc dot gnu.org
2022-11-23 12:18 ` jakub at gcc dot gnu.org
2023-01-13 12:41 ` rguenth at gcc dot gnu.org
2023-03-10 19:39 ` cvs-commit at gcc dot gnu.org
2023-03-10 19:46 ` [Bug c++/107558] [10/11/12 " jakub at gcc dot gnu.org
2023-03-19  5:30 ` cvs-commit at gcc dot gnu.org
2023-03-20 10:30 ` [Bug c++/107558] [10/11 " jakub at gcc dot gnu.org
2023-05-02 20:15 ` cvs-commit at gcc dot gnu.org
2023-05-03  9:32 ` [Bug c++/107558] [10 " jakub at gcc dot gnu.org
2023-05-03 15:22 ` cvs-commit at gcc dot gnu.org
2023-05-04  7:21 ` 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).