https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92787
Marek Polacek changed:
What|Removed |Added
CC||mpolacek at gcc dot gnu.org
--- Comment
++
Assignee: unassigned at gcc dot gnu.org
Reporter: mpolacek at gcc dot gnu.org
Target Milestone: ---
a
stream on|[9/10/11 Regression]
|invalid code|Infinite error stream on
||invalid code
Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot
gnu.org
Keywords
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97165
Marek Polacek changed:
What|Removed |Added
Last reconfirmed||2020-09-22
Status|UNCONFIRME
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97165
--- Comment #2 from Marek Polacek ---
Similar case:
template
class p
|1
Last reconfirmed||2020-09-22
Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot
gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84329
Marek Polacek changed:
What|Removed |Added
CC||mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97157
Marek Polacek changed:
What|Removed |Added
CC||mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97125
Marek Polacek changed:
What|Removed |Added
CC||jim at meyering dot net
--- Comment #7 f
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97125
Marek Polacek changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
at gcc dot gnu.org |mpolacek at gcc dot
gnu.org
++
Assignee: unassigned at gcc dot gnu.org
Reporter: mpolacek at gcc dot gnu.org
Target Milestone: ---
This testcase, provided by Pilar Latiesa:
template
class Base {};
template
class Test : public Base>
{
public:
Test() = default;
template typename T>
Test(Base&
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92136
--- Comment #1 from Marek Polacek ---
Started with
commit 42decc18f5e1795228b8259de7880d7f676e36c7
Author: jason
Date: Tue Feb 28 23:57:09 2017 +
Class template argument deduction refinements
* call.c (joust): Mo
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92136
--- Comment #2 from Marek Polacek ---
We call comp_template_parms with
2 D.2223, 1 d, <<< Unknown tree: template_decl >>>
2 D.2254, 1 d, <<< Unknown tree: template_decl >>>
it compares D.2223 to D.2254, then d to d, then the template_decls. Whe
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92136
--- Comment #3 from Marek Polacek ---
Same issue with an explicit deduction guide:
template
class Base {};
template
class Test1 : public Base>
{
public:
Test1() = default;
template typename T>
Test1(Base> const &) {}
};
template typ
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88323
Bug 88323 depends on bug 91368, which changed state.
Bug 91368 Summary: Implement P1301R4: [[nodiscard("with reason")]]
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91368
What|Removed |Added
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91368
Marek Polacek changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91548
--- Comment #3 from Marek Polacek ---
Sorry about that. I've been working on new C++20 features in the dwindling
stage 1 time, and kept kicking this can down the stage3 road. But hopefully
I'll get to this after posting my aggregate paren init
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92106
--- Comment #6 from Marek Polacek ---
Author: mpolacek
Date: Mon Oct 21 18:22:41 2019
New Revision: 277264
URL: https://gcc.gnu.org/viewcvs?rev=277264&root=gcc&view=rev
Log:
PR c++/92106 - ICE with structured bindings and -Wreturn-local-
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92106
Marek Polacek changed:
What|Removed |Added
Summary|[8/9/10 Regression] ICE |[8/9 Regression] ICE with
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92062
--- Comment #5 from Marek Polacek ---
Author: mpolacek
Date: Mon Oct 21 18:45:45 2019
New Revision: 277266
URL: https://gcc.gnu.org/viewcvs?rev=277266&root=gcc&view=rev
Log:
PR c++/92062 - ODR-use ignored for static member of class template.
ha
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92062
Marek Polacek changed:
What|Removed |Added
Summary|[9/10 Regression] ODR-use |[9 Regression] ODR-use by
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91363
Marek Polacek changed:
What|Removed |Added
Keywords||patch
--- Comment #2 from Marek Polacek
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92106
--- Comment #8 from Marek Polacek ---
Author: mpolacek
Date: Tue Oct 22 15:21:34 2019
New Revision: 277294
URL: https://gcc.gnu.org/viewcvs?rev=277294&root=gcc&view=rev
Log:
PR c++/92106 - ICE with structured bindings and -Wreturn-local-
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92062
--- Comment #7 from Marek Polacek ---
Author: mpolacek
Date: Tue Oct 22 15:46:47 2019
New Revision: 277295
URL: https://gcc.gnu.org/viewcvs?rev=277295&root=gcc&view=rev
Log:
PR c++/92062 - ODR-use ignored for static member of class templ
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92062
Marek Polacek changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92181
Marek Polacek changed:
What|Removed |Added
CC||mpolacek at gcc dot gnu.org
--- Comment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91548
--- Comment #4 from Marek Polacek ---
(In reply to Hannes Hauswedell from comment #2)
> Any news on this issue? We are using this pattern in some rather central
> files in our library and the bug literally breaks 90% of our unit tests so
> we can
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92106
--- Comment #9 from Marek Polacek ---
Author: mpolacek
Date: Tue Oct 22 17:46:12 2019
New Revision: 277296
URL: https://gcc.gnu.org/viewcvs?rev=277296&root=gcc&view=rev
Log:
PR c++/92106 - ICE with structured bindings and -Wreturn-local-
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92106
Marek Polacek changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
|UNCONFIRMED |ASSIGNED
Last reconfirmed||2019-10-22
CC||mpolacek at gcc dot gnu.org
Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot
gnu.org
Ever confirmed|0
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91548
--- Comment #7 from Marek Polacek ---
Thanks.
Reduced (no templates, no lambda):
constexpr int& impl(const int (&array)[10], int index) {
return const_cast(array[index]);
}
struct A {
constexpr int& operator[](int i) { return impl(elems, i
||mpolacek at gcc dot gnu.org
Resolution|--- |FIXED
--- Comment #1 from Marek Polacek ---
Fixed by r272586 so fixed in GCC 10. Certainly not backportable.
|UNCONFIRMED |NEW
Last reconfirmed||2019-10-23
CC||jakub at gcc dot gnu.org,
||mpolacek at gcc dot gnu.org
Target Milestone|--- |10.0
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91548
Marek Polacek changed:
What|Removed |Added
Keywords||patch
--- Comment #8 from Marek Polacek
at gcc dot gnu.org |mpolacek at gcc dot
gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91962
--- Comment #3 from Marek Polacek ---
Fix:
--- a/gcc/cp/call.c
+++ b/gcc/cp/call.c
@@ -7386,7 +7386,8 @@ convert_like_real (conversion *convs, tree expr, tree fn,
int argnum,
/* direct_reference_binding might have inserted a ck_qual under
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92206
Marek Polacek changed:
What|Removed |Added
CC||mpolacek at gcc dot gnu.org
--- Comment
||2019-10-24
CC||mpolacek at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #4 from Marek Polacek ---
Oop. Confirmed.
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: mpolacek at gcc dot gnu.org
Target Milestone: ---
struct S {
int *foo : 3;
};
r.C:2:8: error: function definition does not declare parameters
2 | int *foo : 3;
|^~~
Huh?
We should say
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91962
Marek Polacek changed:
What|Removed |Added
Keywords||patch
--- Comment #4 from Marek Polacek
||2019-10-24
Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot
gnu.org
Ever confirmed|0 |1
--- Comment #1 from Marek Polacek ---
Patch incoming.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92134
--- Comment #1 from Marek Polacek ---
Untested fix:
--- a/gcc/cp/decl2.c
+++ b/gcc/cp/decl2.c
@@ -990,6 +990,9 @@ grokfield (const cp_declarator *declarator,
else
flags = LOOKUP_IMPLICIT;
+ if (decl_spec_seq_has_spec_p (declspecs, ds_c
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92058
--- Comment #2 from Marek Polacek ---
Going to be fixed by https://gcc.gnu.org/ml/gcc-patches/2019-10/msg01777.html
||mpolacek at gcc dot gnu.org
Resolution|--- |DUPLICATE
--- Comment #1 from Marek Polacek ---
Most likely a dup of Bug 90505.
*** This bug has been marked as a duplicate of bug 90505 ***
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90505
Marek Polacek changed:
What|Removed |Added
CC||dimitar.yordanov at sap dot com
--- Comm
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90505
--- Comment #8 from Marek Polacek ---
Test from Bug 92221:
template class a {
using b = int;
using c = int;
b d;
void e() { g(d); }
template static void g(f...);
};
||mpolacek at gcc dot gnu.org
Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot
gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91581
--- Comment #3 from Marek Polacek ---
Author: mpolacek
Date: Fri Oct 25 19:11:58 2019
New Revision: 277462
URL: https://gcc.gnu.org/viewcvs?rev=277462&root=gcc&view=rev
Log:
PR c++/91581 - ICE in exception-specification of defaulted ctor.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91581
Marek Polacek changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91165
Marek Polacek changed:
What|Removed |Added
CC||mpolacek at gcc dot gnu.org
--- Comment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78244
--- Comment #12 from Marek Polacek ---
Another bit to extend the Comment 11 test:
// Test OVERLOAD in a template.
int id(int v) { return v; }
double id(double v) { return v; }
template
auto f5(double v) -> decltype((S{id(v)}, 1)) { return 1; }
||mpolacek at gcc dot gnu.org
Resolution|--- |DUPLICATE
--- Comment #1 from Marek Polacek ---
Going to be fixed by
https://gcc.gnu.org/ml/gcc-patches/2019-10/msg01685.html
*** This bug has been marked as a duplicate of bug 91548 ***
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91548
Marek Polacek changed:
What|Removed |Added
CC||euloanty at live dot com
--- Comment #9
||2019-10-28
CC||mpolacek at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #3 from Marek Polacek ---
As of now, this code is still rejected.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88165
--- Comment #4 from Marek Polacek ---
Maybe we need more delayed parsing here.
at gcc dot gnu.org |mpolacek at gcc dot
gnu.org
--- Comment #4 from Marek Polacek ---
P1002R1 and P1330R0 were implemented in GCC 9. Taking this PR since I'm
looking into P1327R1 (for GCC 10).
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88337
--- Comment #5 from Marek Polacek ---
Looks like we need to teach constexpr how to evaluate a call to __dynamic_cast.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91548
--- Comment #10 from Marek Polacek ---
Author: mpolacek
Date: Tue Oct 29 20:34:43 2019
New Revision: 277591
URL: https://gcc.gnu.org/viewcvs?rev=277591&root=gcc&view=rev
Log:
PR c++/91548 - fix detecting modifying const objects for ARRAY
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91548
Marek Polacek changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90998
--- Comment #4 from Marek Polacek ---
Author: mpolacek
Date: Tue Oct 29 21:06:21 2019
New Revision: 277593
URL: https://gcc.gnu.org/viewcvs?rev=277593&root=gcc&view=rev
Log:
PR c++/90998 - ICE with copy elision in init by ctor and -Wconv
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90998
Marek Polacek changed:
What|Removed |Added
Summary|[9/10 Regression] ICE |[9 Regression] ICE
|(s
||mpolacek at gcc dot gnu.org
Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot
gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92286
Marek Polacek changed:
What|Removed |Added
Keywords||diagnostic
Status|UNCONFIRME
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88337
--- Comment #6 from Marek Polacek ---
First steps: this now compiles in c++2a:
struct B {
virtual void baz () {}
};
struct D : B { };
constexpr bool
fn ()
{
bool ok = true;
B b;
B *b1 = &b;
if (D *pd = dynamic_cast(b1))
ok = fals
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92134
--- Comment #2 from Marek Polacek ---
Author: mpolacek
Date: Wed Oct 30 18:49:59 2019
New Revision: 277636
URL: https://gcc.gnu.org/viewcvs?rev=277636&root=gcc&view=rev
Log:
PR c++/92134 - constinit malfunction in static data member.
I
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92134
Marek Polacek changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92313
Marek Polacek changed:
What|Removed |Added
CC||mpolacek at gcc dot gnu.org
--- Comment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92313
Marek Polacek changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92206
Marek Polacek changed:
What|Removed |Added
CC||TonyELewis at hotmail dot com
--- Commen
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88337
--- Comment #7 from Marek Polacek ---
Sidecast now works too:
struct A {
virtual void afn () {}
};
struct B {
virtual void bfn () {}
};
struct D : A, B { };
constexpr bool
fn ()
{
bool ok = true;
D d;
A *a = &d;
if (B *bp = dynami
||2019-11-03
CC||mpolacek at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from Marek Polacek ---
Confirmed, started with r277614.
||2019-11-04
CC||mpolacek at gcc dot gnu.org
Target Milestone|--- |10.0
Summary|ice unexpected expression |[10 Regression] ice
|‘int16_t()’ of kind |unexpected expression
||mpolacek at gcc dot gnu.org
Resolution|--- |FIXED
--- Comment #1 from Marek Polacek ---
I've fixed this in GCC 10: r274982 / PR81676.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91363
--- Comment #4 from Marek Polacek ---
Need to respond to Jason's feedback:
https://gcc.gnu.org/ml/gcc-patches/2019-11/msg00034.html
But there's very little time left for stage1 and I've been trying to get P1327
done, and then hopefully also P133
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: mpolacek at gcc dot gnu.org
Target Milestone: ---
struct A { virtual void a(); };
struct B : A
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92414
Marek Polacek changed:
What|Removed |Added
Keywords||ice-on-invalid-code
Status|U
||2019-11-08
CC||mpolacek at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from Marek Polacek ---
Confirmed.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92427
--- Comment #2 from Marek Polacek ---
GCC 5 says:
92427.C:11:25: error: too many initializers for ‘C [0]’
} y = { 1, { { 2, 3 } } };
^
then since r231665 we accepted the test. Then since r233126
92427.C: In destructor
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92058
--- Comment #3 from Marek Polacek ---
Author: mpolacek
Date: Fri Nov 8 21:40:45 2019
New Revision: 277990
URL: https://gcc.gnu.org/viewcvs?rev=277990&root=gcc&view=rev
Log:
PR c++/92058 - constinit malfunction in static data member.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92058
Marek Polacek changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92215
Marek Polacek changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92215
--- Comment #2 from Marek Polacek ---
Author: mpolacek
Date: Fri Nov 8 21:48:47 2019
New Revision: 277991
URL: https://gcc.gnu.org/viewcvs?rev=277991&root=gcc&view=rev
Log:
PR c++/92215 - flawed diagnostic for bit-field with non-integra
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90998
--- Comment #6 from Marek Polacek ---
Author: mpolacek
Date: Fri Nov 8 21:52:39 2019
New Revision: 277992
URL: https://gcc.gnu.org/viewcvs?rev=277992&root=gcc&view=rev
Log:
PR c++/90998 - ICE with copy elision in init by ctor and -Wconv
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90998
Marek Polacek changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
||2019-11-08
CC||mpolacek at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from Marek Polacek ---
Confirmed:
92426.C: In member function ‘constexpr auto Basics::operator<=>(const Basics&)
const’:
|UNCONFIRMED |NEW
Last reconfirmed||2019-11-10
CC||jason at gcc dot gnu.org,
||mpolacek at gcc dot gnu.org
Target Milestone|--- |10.0
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88337
Marek Polacek changed:
What|Removed |Added
Keywords||patch
--- Comment #8 from Marek Polacek
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88337
--- Comment #9 from Marek Polacek ---
Not entirely true, this template case should be accepted:
#include
struct B { virtual void f(); };
struct B2 : B { };
template
constexpr bool
fn ()
{
constexpr B2 b2;
static_assert(&typeid(b2) == &typ
||mpolacek at gcc dot gnu.org
Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot
gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92485
Marek Polacek changed:
What|Removed |Added
CC||mpolacek at gcc dot gnu.org
--- Comment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92485
Marek Polacek changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92485
Marek Polacek changed:
What|Removed |Added
Status|RESOLVED|REOPENED
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89070
--- Comment #3 from Marek Polacek ---
Author: mpolacek
Date: Wed Nov 13 15:59:53 2019
New Revision: 278147
URL: https://gcc.gnu.org/viewcvs?rev=278147&root=gcc&view=rev
Log:
PR c++/89070 - bogus [[nodiscard]] warning in SFINAE.
This is
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89070
Marek Polacek changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91353
--- Comment #2 from Marek Polacek ---
The quux case: CONSTRUCTOR_NO_CLEARING is cleared here
2154 /* The result of a constexpr function must be completely initialized.
*/
2155 if (TREE_CODE (result) == CONSTRUCTOR)
2156 clear_no_implici
||2019-11-13
CC||mpolacek at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #2 from Marek Polacek ---
Confirmed.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92504
Marek Polacek changed:
What|Removed |Added
CC||jakub at gcc dot gnu.org
--- Comment #3
||2019-11-14
CC||mpolacek at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from Marek Polacek ---
Looks like this never worked.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92505
--- Comment #2 from Marek Polacek ---
cxx_eval_component_reference has:
2967 if (DECL_MUTABLE_P (part))
2968 {
2969 if (!ctx->quiet)
2970 error ("mutable %qD is not usable in a constant expression",
part);
2971 *non_cons
701 - 800 of 9189 matches
Mail list logo