[Bug c++/66934] Compiler accepting ill-formed program with extern variable declarations and using-declaration

2015-07-26 Thread anders.granlund.0 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66934 --- Comment #6 from Anders Granlund anders.granlund.0 at gmail dot com --- (In reply to Jonathan Wakely from comment #3) Problem report i.e. bugzilla bug. Ok. Done.

[Bug c++/67017] Mixing init-declarator for variables and functions in declaration with auto type-specifier

2015-07-26 Thread anders.granlund.0 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67017 --- Comment #5 from Anders Granlund anders.granlund.0 at gmail dot com --- (In reply to Jonathan Wakely from comment #4) (In reply to Anders Granlund from comment #3) I think that is because type deduction for return types of functions

[Bug c++/66879] Error message when defining a member function inside a class definition

2015-07-26 Thread anders.granlund.0 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66879 --- Comment #7 from Anders Granlund anders.granlund.0 at gmail dot com --- (In reply to Jonathan Wakely from comment #4) So confirming as accepts-invalid with this testcase: class A; namespace Y { using ::A; class A { }; } Here

[Bug c++/66878] Segmentation fault when compiling

2015-07-26 Thread anders.granlund.0 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66878 Anders Granlund anders.granlund.0 at gmail dot com changed: What|Removed |Added Status|NEW

[Bug c++/66879] Error message when defining a member function inside a class definition

2015-07-26 Thread anders.granlund.0 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66879 --- Comment #9 from Anders Granlund anders.granlund.0 at gmail dot com --- *** Bug 66878 has been marked as a duplicate of this bug. ***

[Bug c++/66934] Compiler accepting ill-formed program with extern variable declarations and using-declaration

2015-07-26 Thread anders.granlund.0 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66934 --- Comment #7 from Anders Granlund anders.granlund.0 at gmail dot com --- (In reply to Anders Granlund from comment #2) (In reply to Jonathan Wakely from comment #1) I think we could combine most of your reports into one or two PRs since

[Bug c++/66879] Error message when defining a member function inside a class definition

2015-07-26 Thread anders.granlund.0 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66879 --- Comment #6 from Anders Granlund anders.granlund.0 at gmail dot com --- *** Bug 66889 has been marked as a duplicate of this bug. ***

[Bug c++/66889] Accepting ill-formed program trying to define a struct via using-directive

2015-07-26 Thread anders.granlund.0 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66889 Anders Granlund anders.granlund.0 at gmail dot com changed: What|Removed |Added Status|UNCONFIRMED

[Bug c++/67008] Qualified name-lookup in using-declaration fails

2015-07-25 Thread anders.granlund.0 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67008 --- Comment #1 from Anders Granlund anders.granlund.0 at gmail dot com --- Forgot the command line: g++ prog.cc -std=c++14 -pedantic-errors

[Bug c++/67006] New: type-specifier const in declaration of anonymous union

2015-07-25 Thread anders.granlund.0 at gmail dot com
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: anders.granlund.0 at gmail dot com Target Milestone: --- Consider the following program (prog.cc): const union {}; int main() {} It is ill-formed by [dcl.type.cv] http://eel.is/c++draft/dcl.dcl#dcl.type.cv-1

[Bug c++/67010] New: Name hiding in the same declarative region fails when done via using-directive

2015-07-25 Thread anders.granlund.0 at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: anders.granlund.0 at gmail dot com Target Milestone: --- Consider the following well-formed program: namespace N { struct x {}; } using namespace N; int x; int

[Bug c++/67008] New: Qualified name-lookup in using-declaration fails

2015-07-25 Thread anders.granlund.0 at gmail dot com
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: anders.granlund.0 at gmail dot com Target Milestone: --- Consider the following program: namespace N { int i; } using namespace N; using ::i; int main() {} Compile it with the following command line: Observe

[Bug c++/67010] Name hiding in the same declarative region fails when done via using-directive

2015-07-25 Thread anders.granlund.0 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67010 --- Comment #1 from Anders Granlund anders.granlund.0 at gmail dot com --- Detailed explanation of how the c++ standard can be applied to the program: By [namespace.udir]/2 during the unqualified name lookup of x in sizeof (x), the declaration

[Bug c++/67013] New: Compilation error for well-formed program with empty declaration in the global namespace

2015-07-25 Thread anders.granlund.0 at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: anders.granlund.0 at gmail dot com Target Milestone: --- Consider the following program: int main() {}; It is well-formed, the extra semi colon is just

[Bug c++/66995] New: First declaration as inline after definition of function

2015-07-24 Thread anders.granlund.0 at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: anders.granlund.0 at gmail dot com Target Milestone: --- Consider the following program (prog.cc): void f() {} inline void f(); int main() {} It is ill-formed by [dcl.fct.spec]/4 (http

[Bug c++/66976] New: Compiler error for well-formed program with a definition of a constexpr function returning void

2015-07-23 Thread anders.granlund.0 at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: anders.granlund.0 at gmail dot com Target Milestone: --- The following program (prog.cc in the command line below) is well-formed: constexpr void f

[Bug c++/66966] New: Missing diagnostic message for ill-formed program with anonymous enum

2015-07-22 Thread anders.granlund.0 at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: anders.granlund.0 at gmail dot com Target Milestone: --- Consider the following program (prog.cc): enum {}; int main() {} This is ill-formed according to [dcl.dcl]/5

[Bug c++/66966] Missing diagnostic message for ill-formed program with anonymous enum

2015-07-22 Thread anders.granlund.0 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66966 --- Comment #3 from Anders Granlund anders.granlund.0 at gmail dot com --- (In reply to Jonathan Wakely from comment #2) Oh wait ... if you use -w then you are suppressing diagnostics, so you can't really complain that there are no diagnostics

[Bug c++/66966] Missing diagnostic message for ill-formed program with anonymous enum

2015-07-22 Thread anders.granlund.0 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66966 Anders Granlund anders.granlund.0 at gmail dot com changed: What|Removed |Added Status|REOPENED

[Bug c++/66966] Missing diagnostic message for ill-formed program with anonymous enum

2015-07-22 Thread anders.granlund.0 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66966 --- Comment #4 from Anders Granlund anders.granlund.0 at gmail dot com --- (In reply to Jonathan Wakely from comment #2) Oh wait ... if you use -w then you are suppressing diagnostics, so you can't really complain that there are no diagnostics

[Bug c++/66966] Missing diagnostic message for ill-formed program with anonymous enum

2015-07-22 Thread anders.granlund.0 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66966 Anders Granlund anders.granlund.0 at gmail dot com changed: What|Removed |Added Status|RESOLVED

[Bug c++/66934] Compiler accepting ill-formed program with extern variable declarations and using-declaration

2015-07-19 Thread anders.granlund.0 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66934 --- Comment #2 from Anders Granlund anders.granlund.0 at gmail dot com --- (In reply to Jonathan Wakely from comment #1) I think we could combine most of your reports into one or two PRs since they're all related and fixing them one by one

[Bug c++/66921] failure to determine size of static constexpr array that is nested within a templated class

2015-07-18 Thread anders.granlund.0 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66921 Anders Granlund anders.granlund.0 at gmail dot com changed: What|Removed |Added CC

[Bug c++/66934] New: Compiler accepting ill-formed program with extern variable declarations and using-declaration

2015-07-18 Thread anders.granlund.0 at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: anders.granlund.0 at gmail dot com Target Milestone: --- The following program is ill-formed since the two declarations in main are conflicting

[Bug c++/66888] Compiler accepting ill-formed program trying to define a struct via using-declaration

2015-07-18 Thread anders.granlund.0 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66888 --- Comment #2 from Anders Granlund anders.granlund.0 at gmail dot com --- This bug seems to be more general than struct definitions. It also exists for variable declarations like this: namespace X { extern int i; } namespace N { using X::i

[Bug c++/66935] New: Compiler rejects well-formed program with local extern variable declaration and using-declaration

2015-07-18 Thread anders.granlund.0 at gmail dot com
: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: anders.granlund.0 at gmail dot com Target Milestone: --- The following program is well-formed. The two declarations in main are not conflicting. int

[Bug c++/66900] New: No error message for ill-formed program with qualified name lookup

2015-07-16 Thread anders.granlund.0 at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: anders.granlund.0 at gmail dot com Target Milestone: --- Created attachment 35998 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=35998action=edit prog.cc used in the command

[Bug c++/66901] New: Segmentation fault in compiler instead of error message for ill-formed program with namespace alias and qualified definition

2015-07-16 Thread anders.granlund.0 at gmail dot com
Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: anders.granlund.0 at gmail dot com Target Milestone: --- Created attachment 35999 -- https

[Bug c++/66892] New: Fix of core language defect 355 has status c++11 but is not implemented yet

2015-07-15 Thread anders.granlund.0 at gmail dot com
: enhancement Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: anders.granlund.0 at gmail dot com Target Milestone: --- The following core language defect has status c++11 but is not implemented yet: http://www.open-std.org/jtc1

[Bug c++/66888] New: Compiler accepting ill-formed program trying to define a struct via using-declaration

2015-07-15 Thread anders.granlund.0 at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: anders.granlund.0 at gmail dot com Target Milestone: --- Created attachment 35990 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=35990action=edit prog.cc used

[Bug c++/66889] New: Accepting ill-formed program trying to define a struct via using-directive

2015-07-15 Thread anders.granlund.0 at gmail dot com
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: anders.granlund.0 at gmail dot com Target Milestone: --- Created attachment 35991 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=35991action=edit prog.cc used

[Bug c++/66878] Segmentation fault when compiling

2015-07-15 Thread anders.granlund.0 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66878 --- Comment #3 from Anders Granlund anders.granlund.0 at gmail dot com --- The following bug that I also reported is related: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66888

[Bug c++/66879] New: Error message when defining a member function inside a class definition

2015-07-15 Thread anders.granlund.0 at gmail dot com
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: anders.granlund.0 at gmail dot com Target Milestone: --- Created attachment 35988 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=35988action=edit prog.cc used

[Bug c++/66879] Error message when defining a member function inside a class definition

2015-07-15 Thread anders.granlund.0 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66879 --- Comment #3 from Anders Granlund anders.granlund.0 at gmail dot com --- Thanks for the comments! Now I remember the following bug report that I sent to clang: https://llvm.org/bugs/show_bug.cgi?id=24030 That bug has now been confirmed

[Bug c++/66878] New: Segmentation fault when compiling

2015-07-15 Thread anders.granlund.0 at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: anders.granlund.0 at gmail dot com Target Milestone: --- Created attachment 35987 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=35987action=edit prog.cc used in the command line With the attached file the following command

<    1   2