This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
template auto deduction ICE in the latest gcc master version.
- From: sotrdg sotrdg <euloanty at live dot com>
- To: "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: Sun, 13 Oct 2019 18:30:56 +0000
- Subject: template auto deduction ICE in the latest gcc master version.
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6kcpSxfvTm4vFtymLKE8FeVMZ0vULHlR8oH/Y5/nIHE=; b=meb4BNDIM8+AbYKwR6JfqD66oni9Ihzq6WeTJ4khNxqMmXkpvoBdKL8oPfZzec2RjUWp5adxIJNNpqyjGDbrsO0R93CUWgU/egkZJK3WPKs2E/ZAdy0s4YEHI43tiQQ7x81E6gceQtNPG23ecF9FRYUMtr6Bj4YlmI8xMWWs5EzfCd59OjX/COS+Dc99FbuVIKZfp56DLrY1ET7XplJ1EWDA9F0XeoZahH7s+r3Qq2wZBQXj2AMo+gaFpzXtwjnjUkgGMvZjMpyNTPG0pXpVv3g+eIjQeV7nIhG+iEkBQ2sGP9lwovMAoZVeMmzc/zPDLR7U7ZfVPh3myc1QtYEEKA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FByNjxn+yXa9Az3uV7ykU4mH3Tzsf1bZVRxHhDa4ew57r6esadIkt5iDCex4ulXmfCvZCYTmV2xAXTufkIU93LVQhlSXYt7X4g46zDByk+0GQdTv/eiPml4iHyPDYBmquZVZ1OOsoO1vl+xXqLmhf02wqpfyq4D+k7iJjzLDbKi++G5p8DPc0UjemZJ4oI8aeFVmbdb0s627LTiJt9URla/eur1eU73hiQSCuFqqAzRxThnvgHLWrFtMCqicVbjar43xoCkxA6dM4/9odNswnX3eLF//d/oUsTzskh15auD8PNpsBSf94bmi5yZp8gmbdol2ab5YA21Pdd5GUHoK/g==
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