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.
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
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(); };
Note
IRMED
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 t
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
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 boom;
Fed to any verison of
++
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
: 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 str
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
NCONFIRMED
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
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
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
: 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
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
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 (as
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
: 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
: 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 para
++
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"
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
20 matches
Mail list logo