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.
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
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
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
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. ***
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
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. ***
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66921
Anders Granlund anders.granlund.0 at gmail dot com changed:
What|Removed |Added
CC
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
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
: 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
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
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
: 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
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
: 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
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
: 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
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
++
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
101 - 135 of 135 matches
Mail list logo