[Bug c++/83473] New: pragme problems with raw string literals

2017-12-18 Thread smw at gcc dot gnu.org
++ Assignee: unassigned at gcc dot gnu.org Reporter: smw at gcc dot gnu.org Target Milestone: --- The following C++ code fails under GCC. _Pragma ( R"()" ) The error message is as follows. 1 : :1:1: warning: missing terminating " character _Pragma ( R&

[Bug c++/83469] New: union is not accepted as a valid class-key in template name resolution

2017-12-18 Thread smw at gcc dot gnu.org
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: smw at gcc dot gnu.org Target Milestone: --- The following code is accepted by clang, icc, and msvc (all versions tested) but is rejected with all version of GCC (tested from 4.0

[Bug c++/83929] New: implicit conversion of literal class type can not be used as bit-field length

2018-01-18 Thread smw at gcc dot gnu.org
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: smw at gcc dot gnu.org Target Milestone: --- [expr.const]/3 says "An integral constant expression is an expression of integral or unscoped enumeration type, impli

[Bug c++/83928] New: implicit conversion of literal class type to unscoped enumeration can not be used as array size

2018-01-18 Thread smw at gcc dot gnu.org
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: smw at gcc dot gnu.org Target Milestone: --- [expr.const]/6 says "If an expression of literal class type is used in a context where an integral con

[Bug c++/83932] New: No diagnostic issued for missing default argument in lambda-expression

2018-01-18 Thread smw at gcc dot gnu.org
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: smw at gcc dot gnu.org Target Milestone: --- This code void f() { auto l = [](int i=1, int j) {}; } should give me a diagnostic about parameter "j" missing

[Bug c++/83873] New: adjacent digit separators are accepted in the exponent-part of floating-point literals

2018-01-15 Thread smw at gcc dot gnu.org
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: smw at gcc dot gnu.org Target Milestone: --- GCC diagnoses adjacent digit separators in integral literals and the fractional-constant of floating point literals

[Bug c++/83870] New: template parameter pack followed by another template parameter does not error when following parameter can not be deduced

2018-01-15 Thread smw at gcc dot gnu.org
Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: smw at gcc dot gnu.org Target Milestone: --- [temp.param]/11 tells us "A template parameter pack of a fun

[Bug c++/84027] New: new-expression does not accept an attribute-specifier-seq

2018-01-24 Thread smw at gcc dot gnu.org
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: smw at gcc dot gnu.org Target Milestone: --- The standard [expr.new]/1 defines the new-type-id part of a new expression as having (one or more) attribute-specifier-seq but GCC does not accept

[Bug c++/83820] New: No diagnostic issued for noreturn attribute specifier with an argument list

2018-01-12 Thread smw at gcc dot gnu.org
: minor Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: smw at gcc dot gnu.org Target Milestone: --- No diagnostic is issued for a [[noreturn]] attribute specifier containing an attribute-argument-clause. See [dcl.attr.noreturn]/1

[Bug c++/84186] New: nested template qualified-id not parsed correctly

2018-02-02 Thread smw at gcc dot gnu.org
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: smw at gcc dot gnu.org Target Milestone: --- OK, bear with me on this one, but it appears like a nested qualified-id that is a simple-template-id confuses the parser, or something. Here's some code. template struct N

[Bug c++/84297] New: ICE (mmap: Invalid argument) in std::is_trivially_constructible

2018-02-08 Thread smw at gcc dot gnu.org
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: smw at gcc dot gnu.org Target Milestone: --- I expected a diagnostic, but not this one. #include struct S { }; std::is_trivially_constructible<S, int&()> boom;

[Bug c++/84255] New: accepts redefinition of template variable

2018-02-06 Thread smw at gcc dot gnu.org
++ Assignee: unassigned at gcc dot gnu.org Reporter: smw at gcc dot gnu.org Target Milestone: --- The following code is accepted by all version of GCC tested, but rejected by other compilers following ISO/IEC 14889 [temp]/1. template constexpr T pi = T

[Bug c++/84311] New: compiler accepts invalid multiple type-specifiers in a decl-specifier-seq for an enum

2018-02-09 Thread smw at gcc dot gnu.org
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: smw at gcc dot gnu.org Target Milestone: --- The following C++ code compiles without error (all versions of GCC tested) in violation of [dcl.type]/2. long enum E

[Bug c++/84374] New: placeholder decltype(auto) accepted when it's not the placeholder alone in trailing-return-type

2018-02-13 Thread smw at gcc dot gnu.org
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: smw at gcc dot gnu.org Target Milestone: --- [dcl.spec.auto]/7 says "If the placeholder is the decltype(auto) type-specifier, the declared

[Bug c++/84374] placeholder decltype(auto) accepted when it's not the placeholder alone in trailing-return-type

2018-02-13 Thread smw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84374 --- Comment #1 from Stephen M. Webb --- Hrm, evidently the problem is not limited to trailing-return-type declarations, since the following code also results in no diagnostic. decltype(auto)* f(); class C { decltype(auto)* g(); };

[Bug c++/83672] New: Unable to take the address of a template function parameter pack specialization with a function argument

2018-01-03 Thread smw at gcc dot gnu.org
: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: smw at gcc dot gnu.org Target Milestone: --- Can't take the address of a template function specialization if the template function has a parameter

[Bug c++/84009] New: No diagnostic issued if the decl-specifier in the decl-specifier-seq of a for-range-declaration is register, static,or thread_local

2018-01-23 Thread smw at gcc dot gnu.org
Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: smw at gcc dot gnu.org Target Milestone: --- The C++ standard requires the decl-specifier in the decl

[Bug c++/84026] New: invalid 'unnamed scoped enum is not allowed' when scoped enum has a full qualified-id

2018-01-24 Thread smw at gcc dot gnu.org
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: smw at gcc dot gnu.org Target Milestone: --- On GCC (all versions tested, up to and including 8.0.1 20180117 with -std=c++14 -pedantic) but not o nMSVC, ICC, or clang

[Bug c++/83928] implicit conversion of literal class type to unscoped enumeration can not be used as array size

2019-07-25 Thread smw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83928 --- Comment #1 from Stephen M. Webb --- This appears to have been fixed as of the GCC 8.1 and later.

[Bug c++/91261] New: noptr-new-declarator does not accept converted constant expressions

2019-07-25 Thread smw at gcc dot gnu.org
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: smw at gcc dot gnu.org Target Milestone: --- The restrictions on the constant-expression of noptr-new-devlarators was changed from integral constant expressions in C++11 to converted