[Bug c++/100344] compiler ICE internal compiler error: in build_call_a, at cp/call.c:38

2021-04-30 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100344

--- Comment #8 from cqwrteur  ---
I think this relates to the changes jicama did yesterday. Maybe he can help us
fix it?

[Bug c++/100344] compiler ICE internal compiler error: in build_call_a, at cp/call.c:38

2021-04-30 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100344

--- Comment #7 from David Binderman  ---
Reduced C++ code seems to be:

template  struct integral_constant {
  static constexpr int value = __v;
};
template  constexpr long find_index() { return 1; }
template 
using find_index_checked = integral_constant()>;
template  class Trans_NS_mpark_variant {};
template  void get(Trans_NS_mpark_variant);
template  void get(Trans_NS_mpark_variant v) {
  get::value>(v);
}
void TestBody() {
  Trans_NS_mpark_variant w;
  get(w);
}

[Bug c++/100344] compiler ICE internal compiler error: in build_call_a, at cp/call.c:38

2021-04-30 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100344

--- Comment #6 from David Binderman  ---
The bug first seems to occur sometime between git hash 
b58dc0b803057c0e, dated 20210429, and 17f2908fcf058e14, dated
20210430.

I have a poor record with git bisect, so I will leave that 
to someone else more competent.

[Bug c++/100344] compiler ICE internal compiler error: in build_call_a, at cp/call.c:38

2021-04-30 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100344

David Binderman  changed:

   What|Removed |Added

 CC||dcb314 at hotmail dot com

--- Comment #5 from David Binderman  ---
Created attachment 50718
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50718=edit
gzipped C++ source code

I see a similar error. Preprocessed C++ source code attached.

I will reduce the code, using cvise.

[Bug c++/100344] compiler ICE internal compiler error: in build_call_a, at cp/call.c:38

2021-04-30 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100344

Richard Biener  changed:

   What|Removed |Added

 Ever confirmed|1   |0
   Keywords||needs-reduction
 Status|WAITING |UNCONFIRMED

[Bug c++/100344] compiler ICE internal compiler error: in build_call_a, at cp/call.c:38

2021-04-29 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100344

--- Comment #4 from cqwrteur  ---
Created attachment 50713
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50713=edit
Preprocess

sorry. the file was too large.

It looks like it is an issue related to constexpr evaluation.

[Bug c++/100344] compiler ICE internal compiler error: in build_call_a, at cp/call.c:38

2021-04-29 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100344

--- Comment #3 from cqwrteur  ---
(In reply to Marek Polacek from comment #2)
> Testcase?

i can only provide preprocess file

[Bug c++/100344] compiler ICE internal compiler error: in build_call_a, at cp/call.c:38

2021-04-29 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100344

Marek Polacek  changed:

   What|Removed |Added

 Ever confirmed|0   |1
 Status|UNCONFIRMED |WAITING
   Last reconfirmed||2021-04-29
 CC||mpolacek at gcc dot gnu.org

--- Comment #2 from Marek Polacek  ---
Testcase?

[Bug c++/100344] compiler ICE internal compiler error: in build_call_a, at cp/call.c:38

2021-04-29 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100344

--- Comment #1 from cqwrteur  ---
D:\hg\fast_io\.tmp\dragonboxtest>g++ -o a a.cc -Ofast -std=c++20 -s -flto
-march=native -Wall -Wextra
In file included from ../../include/fast_io_core_impl/codecvt/impl.h:7,
 from ../../include/fast_io_core.h:91,
 from ../../include/fast_io_freestanding.h:12,
 from ../../include/fast_io_hosted.h:17,
 from ../../include/fast_io.h:9,
 from a.cc:1:
../../include/fast_io_core_impl/codecvt/general.h: In instantiation of
'constexpr dest_char_type*
fast_io::details::codecvt::general_code_cvt_full(const src_char_type*, const
src_char_type*, dest_char_type*) [with fast_io::encoding_scheme src_encoding =
fast_io::encoding_scheme::execution_charset; fast_io::encoding_scheme encoding
= fast_io::encoding_scheme::utf_le; src_char_type = char; dest_char_type =
char16_t]':
../../include/fast_io_hosted/platforms/win32_path_dealer.h:25:109:   required
from 'constexpr fast_io::details::win32_path_dealer::win32_path_dealer(const
from_char_type*, std::size_t) [with from_char_type = char; std::size_t = long
long unsigned int]'
../../include/fast_io_hosted/platforms/win32.h:99:42:   required from 'void*
fast_io::details::win32_create_file_impl(fast_io::basic_cstring_view,
const fast_io::details::win32_open_mode&) [with char_type = char]'
../../include/fast_io_hosted/platforms/win32.h:775:69:   required from
'fast_io::basic_win32_file::basic_win32_file(fast_io::cstring_view,
fast_io::open_mode, fast_io::perms) [with ch_type = char; fast_io::cstring_view
= fast_io::basic_cstring_view]'
../../include/fast_io_hosted/file_loaders/win32_file_loader.h:61:13:   required
from 'auto
fast_io::win32::details::win32_load_file_impl(fast_io::basic_cstring_view,
fast_io::perms) [with char_type = char]'
../../include/fast_io_hosted/file_loaders/win32_file_loader.h:112:48:  
required from here
../../include/fast_io_core_impl/codecvt/general.h:430:98: internal compiler
error: in build_call_a, at cp/call.c:381
  430 | return
general_code_cvt_full(src_encoding),
  | 
^~
libbacktrace could not find executable to open
Please submit a full bug report,
with preprocessed source if appropriate.
See  for instructions.