template auto deduction ICE in the latest gcc master version.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

template auto deduction ICE in the latest gcc master version.

sotrdg sotrdg
https://github.com/euloanty/fast_io/blob/master/examples/0036.concepts_check/iostrm.cc



cqwrteur@DESKTOP-7H7UHQ9:/mnt/d/hg/fast_io/examples/build$ ninja
[1/2] Building CXX object CMakeFiles/iostrm.dir/0036.concepts_check/iostrm.cc.o
FAILED: CMakeFiles/iostrm.dir/0036.concepts_check/iostrm.cc.o
/usr/local/bin/c++    -O3 -DNDEBUG   -fconcepts -ffast-math -Wall -Wextra -std=gnu++2a -MD -MT CMakeFiles/iostrm.dir/0036.concepts_check/iostrm.cc.o -MF CMakeFiles/iostrm.dir/0036.concepts_check/iostrm.cc.o.d -o CMakeFiles/iostrm.dir/0036.concepts_check/iostrm.cc.o -c ../0036.concepts_check/iostrm.cc
../0036.concepts_check/iostrm.cc: In function ‘int main()’:
../0036.concepts_check/iostrm.cc:8:51: error: deduced initializer does not satisfy placeholder constraints
    8 |  fast_io::stream auto fin(std::ifstream("abc.txt"));
      |                                                   ^
../0036.concepts_check/iostrm.cc:8:51: note: constraints not satisfied
c++: internal compiler error: Segmentation fault signal terminated program cc1plus
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
ninja: build stopped: subcommand failed.

Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10

Reply | Threaded
Open this post in threaded view
|

Re: template auto deduction ICE in the latest gcc master version.

Jonathan Wakely-4
On Sun, 13 Oct 2019 at 19:31, sotrdg sotrdg <[hidden email]> wrote:

>
> https://github.com/euloanty/fast_io/blob/master/examples/0036.concepts_check/iostrm.cc
>
>
>
> cqwrteur@DESKTOP-7H7UHQ9:/mnt/d/hg/fast_io/examples/build$ ninja
> [1/2] Building CXX object CMakeFiles/iostrm.dir/0036.concepts_check/iostrm.cc.o
> FAILED: CMakeFiles/iostrm.dir/0036.concepts_check/iostrm.cc.o
> /usr/local/bin/c++    -O3 -DNDEBUG   -fconcepts -ffast-math -Wall -Wextra -std=gnu++2a -MD -MT CMakeFiles/iostrm.dir/0036.concepts_check/iostrm.cc.o -MF CMakeFiles/iostrm.dir/0036.concepts_check/iostrm.cc.o.d -o CMakeFiles/iostrm.dir/0036.concepts_check/iostrm.cc.o -c ../0036.concepts_check/iostrm.cc
> ../0036.concepts_check/iostrm.cc: In function ‘int main()’:
> ../0036.concepts_check/iostrm.cc:8:51: error: deduced initializer does not satisfy placeholder constraints
>     8 |  fast_io::stream auto fin(std::ifstream("abc.txt"));
>       |                                                   ^
> ../0036.concepts_check/iostrm.cc:8:51: note: constraints not satisfied
> c++: internal compiler error: Segmentation fault signal terminated program cc1plus
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <https://gcc.gnu.org/bugs/> for instructions.
> ninja: build stopped: subcommand failed.

This has nothing to do with libstdc++, and bugs should be reported to
bugzilla not by sending email to the gcc-bugs list (which is for
automated replies from bugzilla only).

https://gcc.gnu.org/bugs/