++
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 for
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.
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
> mor
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
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
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;
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88092
emmanuel.le-tr...@cnrs-orleans.fr changed:
What|Removed |Added
CC||emmanuel.le-trong
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 on. It
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
10 matches
Mail list logo