[Bug c++/94765] New: Floating point type template parameter

2020-04-25 Thread emmanuel.le-tr...@cnrs-orleans.fr
++ Assignee: unassigned at gcc dot gnu.org Reporter: emmanuel.le-tr...@cnrs-orleans.fr Target Milestone: --- With C++20, non-type template parameters can now be any scalar type[0] which include floating point types[1]. So this template struct S {}; should compile. The rules

[Bug c++/88355] [c++20] Placeholder non-type template argument type deduction fails with custom types

2020-01-08 Thread emmanuel.le-tr...@cnrs-orleans.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88355 --- Comment #3 from Emmanuel Le Trong --- This bug has disappeared, both tests above compile with version 10.0.0 20200108.

[Bug c++/88355] [c++20] Placeholder non-type template argument type deduction fails with custom types

2019-03-01 Thread emmanuel.le-tr...@cnrs-orleans.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88355 --- Comment #2 from Emmanuel Le Trong --- Ok I got this new snippet showing what is very probably the same bug, although the diagnostic message is not the same at all. (And quite frankly I don't understand it.) $ cat bug_5.cpp

[Bug c++/88395] ICE: Segmentation fault signal terminated program cc1plus, with -std=c++2a -fconcepts

2018-12-13 Thread emmanuel.le-tr...@cnrs-orleans.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88395 --- Comment #2 from Emmanuel Le Trong --- (In reply to Nicholas Krause from comment #1) > First off that's just a valid snippet without a class definition so I was > unable to build it against gcc itself to even check this is a bug. Further >

[Bug c++/88395] New: ICE: Segmentation fault signal terminated program cc1plus, with -std=c++2a -fconcepts

2018-12-06 Thread emmanuel.le-tr...@cnrs-orleans.fr
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: emmanuel.le-tr...@cnrs-orleans.fr Target Milestone: --- Both trunk and 8.2.1 segfault on this valid snippet $ cat bug_4.cpp template concept bool Concept2

[Bug c++/88373] New: parse error in template argument list when using bitwise not with -std=c++2a switch

2018-12-05 Thread emmanuel.le-tr...@cnrs-orleans.fr
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: emmanuel.le-tr...@cnrs-orleans.fr Target Milestone: --- Using the bitwise not in a non-type template argument produces a parse error with the -std=c++2a switch

[Bug c++/88092] class nontype template deduction failed when providing type to class

2018-12-05 Thread emmanuel.le-tr...@cnrs-orleans.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88092 emmanuel.le-tr...@cnrs-orleans.fr changed: What|Removed |Added CC||emmanuel.le-trong

[Bug c++/88355] New: [c++20] Placeholder non-type template argument type deduction fails with custom types

2018-12-04 Thread emmanuel.le-tr...@cnrs-orleans.fr
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: emmanuel.le-tr...@cnrs-orleans.fr Target Milestone: --- Deducing the type of a non-type template parameter containing a placeholder fails with custom types. $ g++-9

[Bug c++/88216] [9 Regression] ICE (-std=c++2a) in cxx_eval_constant_expression, at cp/constexpr.c:4602

2018-11-27 Thread emmanuel.le-tr...@cnrs-orleans.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88216 --- Comment #2 from emmanuel.le-tr...@cnrs-orleans.fr --- Valid. This snippet compiles: struct T {}; template struct U {}; T t; U u;

[Bug c++/88216] New: ICE (-std=c++2a) in cxx_eval_constant_expression, at cp/constexpr.c:4602

2018-11-27 Thread emmanuel.le-tr...@cnrs-orleans.fr
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: emmanuel.le-tr...@cnrs-orleans.fr Target Milestone: --- $ g++-9 -v Using built-in specs. COLLECT_GCC=g++-9