This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: template auto deduction ICE in the latest gcc master version.
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: sotrdg sotrdg <euloanty at live dot com>
- Cc: "gcc-bugs at gcc dot gnu dot org" <gcc-bugs at gcc dot gnu dot org>, "libstdc++" <libstdc++ at gcc dot gnu dot org>
- Date: Mon, 14 Oct 2019 09:47:40 +0100
- Subject: Re: template auto deduction ICE in the latest gcc master version.
- References: <BL0PR02MB4484F0BF57A4D1B32D573DDBB2910@BL0PR02MB4484.namprd02.prod.outlook.com>
On Sun, 13 Oct 2019 at 19:31, sotrdg sotrdg <euloanty@live.com> 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/