[Bug c++/100764] Internal compiler error when unable to deduce template parameter value

2023-05-22 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100764

Patrick Palka  changed:

   What|Removed |Added

   Target Milestone|11.3|10.3

--- Comment #5 from Patrick Palka  ---
Even 10.3 accepts it as Martin pointed out.

[Bug c++/100764] Internal compiler error when unable to deduce template parameter value

2023-05-22 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100764

Patrick Palka  changed:

   What|Removed |Added

   See Also||https://gcc.gnu.org/bugzill
   ||a/show_bug.cgi?id=105143,
   ||https://gcc.gnu.org/bugzill
   ||a/show_bug.cgi?id=93083
   Keywords|ice-on-invalid-code |ice-on-valid-code
 Status|NEW |RESOLVED
 CC||ppalka at gcc dot gnu.org
   Target Milestone|--- |11.3
 Resolution|--- |FIXED

--- Comment #4 from Patrick Palka  ---
Looks like this is fixed for GCC 11.3+ by the fix for PR105143 (and PR93083). 
A new testcase seems unnecessary since the existing tests from these PRs ought
to sufficiently cover this situation.

[Bug c++/100764] Internal compiler error when unable to deduce template parameter value

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100764

Andrew Pinski  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever confirmed|0   |1
   Last reconfirmed||2021-08-10

--- Comment #3 from Andrew Pinski  ---
Confirmed.

[Bug c++/100764] Internal compiler error when unable to deduce template parameter value

2021-05-26 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100764

Martin Liška  changed:

   What|Removed |Added

 CC||jason at gcc dot gnu.org,
   ||marxin at gcc dot gnu.org

--- Comment #2 from Martin Liška  ---
It seems GCC 10.3.0 accepts the code since
g:e6e42891d80c12c4fac36d6273b8d4e31a3d0a2a, master ICEs since
r11-5752-ga95753214b55d21e

[Bug c++/100764] Internal compiler error when unable to deduce template parameter value

2021-05-26 Thread egor_suvorov at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100764

--- Comment #1 from Egor Suvorov  ---
UPD: compiling with `g++ -v -std=c++20` on Godbolt's GCC 11.1 yields the
following information about versions:

Using built-in specs.
COLLECT_GCC=/opt/compiler-explorer/gcc-11.1.0/bin/g++
Target: x86_64-linux-gnu
Configured with: ../gcc-11.1.0/configure
--prefix=/opt/compiler-explorer/gcc-build/staging --build=x86_64-linux-gnu
--host=x86_64-linux-gnu --target=x86_64-linux-gnu --disable-bootstrap
--enable-multiarch --with-abi=m64 --with-multilib-list=m32,m64,mx32
--enable-multilib --enable-clocale=gnu
--enable-languages=c,c++,fortran,ada,go,d --enable-ld=yes --enable-gold=yes
--enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-linker-build-id
--enable-lto --enable-plugins --enable-threads=posix
--with-pkgversion=Compiler-Explorer-Build
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 11.1.0 (Compiler-Explorer-Build) 
COLLECT_GCC_OPTIONS='-fdiagnostics-color=always' '-g' '-o' '/app/output.s'
'-masm=intel' '-S' '-std=c++20' '-v' '-shared-libgcc' '-mtune=generic'
'-march=x86-64' '-dumpdir' '/app/'

/opt/compiler-explorer/gcc-11.1.0/bin/../libexec/gcc/x86_64-linux-gnu/11.1.0/cc1plus
-quiet -v -imultiarch x86_64-linux-gnu -iprefix
/opt/compiler-explorer/gcc-11.1.0/bin/../lib/gcc/x86_64-linux-gnu/11.1.0/
-D_GNU_SOURCE  -quiet -dumpdir /app/ -dumpbase output.cpp -dumpbase-ext
.cpp -masm=intel -mtune=generic -march=x86-64 -g -std=c++20 -version
-fdiagnostics-color=always -o /app/output.s
GNU C++20 (Compiler-Explorer-Build) version 11.1.0 (x86_64-linux-gnu)
compiled by GNU C version 7.5.0, GMP version 6.1.0, MPFR version 3.1.4,
MPC version 1.0.3, isl version isl-0.18-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory
"/opt/compiler-explorer/gcc-11.1.0/bin/../lib/gcc/x86_64-linux-gnu/11.1.0/../../../../x86_64-linux-gnu/include"
ignoring duplicate directory
"/opt/compiler-explorer/gcc-11.1.0/bin/../lib/gcc/../../lib/gcc/x86_64-linux-gnu/11.1.0/../../../../include/c++/11.1.0"
ignoring duplicate directory
"/opt/compiler-explorer/gcc-11.1.0/bin/../lib/gcc/../../lib/gcc/x86_64-linux-gnu/11.1.0/../../../../include/c++/11.1.0/x86_64-linux-gnu"
ignoring duplicate directory
"/opt/compiler-explorer/gcc-11.1.0/bin/../lib/gcc/../../lib/gcc/x86_64-linux-gnu/11.1.0/../../../../include/c++/11.1.0/backward"
ignoring duplicate directory
"/opt/compiler-explorer/gcc-11.1.0/bin/../lib/gcc/../../lib/gcc/x86_64-linux-gnu/11.1.0/include"
ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"
ignoring duplicate directory
"/opt/compiler-explorer/gcc-11.1.0/bin/../lib/gcc/../../lib/gcc/x86_64-linux-gnu/11.1.0/include-fixed"
ignoring nonexistent directory
"/opt/compiler-explorer/gcc-11.1.0/bin/../lib/gcc/../../lib/gcc/x86_64-linux-gnu/11.1.0/../../../../x86_64-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:

/opt/compiler-explorer/gcc-11.1.0/bin/../lib/gcc/x86_64-linux-gnu/11.1.0/../../../../include/c++/11.1.0

/opt/compiler-explorer/gcc-11.1.0/bin/../lib/gcc/x86_64-linux-gnu/11.1.0/../../../../include/c++/11.1.0/x86_64-linux-gnu

/opt/compiler-explorer/gcc-11.1.0/bin/../lib/gcc/x86_64-linux-gnu/11.1.0/../../../../include/c++/11.1.0/backward

/opt/compiler-explorer/gcc-11.1.0/bin/../lib/gcc/x86_64-linux-gnu/11.1.0/include

/opt/compiler-explorer/gcc-11.1.0/bin/../lib/gcc/x86_64-linux-gnu/11.1.0/include-fixed
 /usr/local/include
 /opt/compiler-explorer/gcc-11.1.0/bin/../lib/gcc/../../include
 /usr/include/x86_64-linux-gnu
 /usr/include
End of search list.
GNU C++20 (Compiler-Explorer-Build) version 11.1.0 (x86_64-linux-gnu)
compiled by GNU C version 7.5.0, GMP version 6.1.0, MPFR version 3.1.4,
MPC version 1.0.3, isl version isl-0.18-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 9cf7a593a02f6cca3d19cdf19881522c
'
Internal compiler error: Error reporting routines re-entered.
0x17802b1 warning(int, char const*, ...)
???:0
0x7d4077 do_auto_deduction(tree_node*, tree_node*, tree_node*, int,
auto_deduction_context, tree_node*, int)
???:0
0x7da762 tsubst(tree_node*, tree_node*, int, tree_node*)
???:0
0x178bef2 pp_format(pretty_printer*, text_info*)
???:0
0x178c540 pp_format_verbatim(pretty_printer*, text_info*)
???:0
0x178c621 pp_verbatim(pretty_printer*, char const*, ...)
???:0
0x177f6ed diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info*)
???:0
0x17819df warning_at(rich_location*, int, char const*, ...)
???:0
0x6f969d finish_function(bool)
???:0
0x7dcec3 instantiate_decl(tree_node*, bool, bool)
???:0
0x7f7aab instantiate_pending_templates(int)
???:0
0x708f4d c_parse_final_cleanups()
???:0
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See