This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

template auto deduction ICE in the latest gcc master version.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]