[Bug c++/93299] [9/10 Regression] ICE in tsubst_copy, at cp/pt.c:15779

2020-01-17 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93299 --- Comment #4 from Marek Polacek --- force_paren_expr now creates a VIEW_CONVERT_EXPR: + expr = build1 (VIEW_CONVERT_EXPR, TREE_TYPE (expr), expr); + REF_PARENTHESIZED_P (expr) = true; but it's not a case that tsubst_copy can handle: 1

[Bug c++/93299] [9/10 Regression] ICE in tsubst_copy, at cp/pt.c:15779

2020-01-17 Thread mpolacek at gcc dot gnu.org
at gcc dot gnu.org |mpolacek at gcc dot gnu.org

[Bug c++/93299] [9/10 Regression] ICE in tsubst_copy, at cp/pt.c:15779

2020-01-17 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93299 Marek Polacek changed: What|Removed |Added Priority|P3 |P2

[Bug c++/93299] [9/10 Regression] ICE in tsubst_copy, at cp/pt.c:15779

2020-01-17 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93299 Marek Polacek changed: What|Removed |Added Keywords||patch --- Comment #5 from Marek Polacek

[Bug c++/93323] Internal Compiler Error in unify at cp/pt.c:22219

2020-01-19 Thread mpolacek at gcc dot gnu.org
|UNCONFIRMED |NEW Last reconfirmed||2020-01-19 CC||mpolacek at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Marek Polacek --- Started with

[Bug c++/93324] [10 Regression] ICE with -Wall on constexpr if

2020-01-19 Thread mpolacek at gcc dot gnu.org
|ASSIGNED Known to work||9.2.0 Keywords||ice-on-valid-code Last reconfirmed||2020-01-19 CC||mpolacek at gcc dot gnu.org Assignee

[Bug c++/93320] internal compiler error: in is_base_type, at dwarf2out.c:12987

2020-01-19 Thread mpolacek at gcc dot gnu.org
||2020-01-19 CC||mpolacek at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #2 from Marek Polacek --- Confirmed with a cross: subrepos/thingi/include/thingi/Interface.h:241:19: internal compiler error: in

[Bug c++/93320] internal compiler error: in is_base_type, at dwarf2out.c:12987

2020-01-19 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93320 --- Comment #3 from Marek Polacek --- We crash in is_base_type because it gets (gdb) p type $1 = and that is not handled: 12990 gcc_unreachable ();

[Bug c++/93324] [10 Regression] ICE with -Wall on constexpr if

2020-01-19 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93324 Marek Polacek changed: What|Removed |Added Keywords||patch --- Comment #2 from Marek Polacek

[Bug c++/93320] internal compiler error: in is_base_type, at dwarf2out.c:12987

2020-01-19 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93320 --- Comment #5 from Marek Polacek --- Seems like it started with g:3075affdbcb3232fe549fbeed87bd94114c14758

[Bug c++/93323] Internal Compiler Error in unify at cp/pt.c:22219

2020-01-19 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93323 Marek Polacek changed: What|Removed |Added Keywords|needs-reduction | --- Comment #2 from Marek Polacek ---

[Bug c++/93275] [9/10 Regression] ICE: unexpected expression 'N' of kind template_parm_index

2020-01-20 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93275 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

[Bug c++/92907] noexcept does not consider "const" in member functions

2020-01-21 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92907 --- Comment #4 from Marek Polacek --- I think I see the problem -- in cp_parser_noexcept_specification_opt we inject 'this', but always without any qualifiers: 25737 if (current_class_type) 25738 inject_this_parameter (curre

[Bug c++/92907] noexcept does not consider "const" in member functions

2020-01-21 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92907 Marek Polacek changed: What|Removed |Added Keywords||patch --- Comment #5 from Marek Polacek

[Bug c++/93389] Failure to detect UB in constexpr context

2020-01-22 Thread mpolacek at gcc dot gnu.org
Status|UNCONFIRMED |NEW Last reconfirmed||2020-01-22 CC||mpolacek at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #2 from Marek Polacek --- Confirmed, too late for GCC 10.

[Bug c++/93324] [10 Regression] ICE with -Wall on constexpr if

2020-01-22 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93324 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/92907] noexcept does not consider "const" in member functions

2020-01-22 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92907 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/93383] ICE on accessing field of a structure which is non-type template parameter, -std=c++2a

2020-01-22 Thread mpolacek at gcc dot gnu.org
||2020-01-22 CC||mpolacek at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Marek Polacek --- Confirmed, ICEs with GCC 7 too.

[Bug c++/93383] ICE on accessing field of a structure which is non-type template parameter, -std=c++2a

2020-01-22 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93383 --- Comment #2 from Marek Polacek --- r7-5532-g35f4cbd4489519983a4f64da846be8352f611879 compiles OK r7-5533-ga93634ba09c4b33d95233e48d9c452a529555d05 ICE in unify_one_argument r7-6939-g853ef4e5632df32894b2366096c1ae1ef4ba03df ICE in resolve_args

[Bug c++/93383] ICE on accessing field of a structure which is non-type template parameter, -std=c++2a

2020-01-22 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93383 --- Comment #3 from Marek Polacek --- resolve_args gets a vector of arguments, one of which is (gdb) p arg $3 = (gdb) pt > readonly constant decl readonly constant decl_0 VOID 93383.C:15:10 align:1 warn

[Bug c++/79620] decltype() inside a lambda capturing-by-value

2020-01-22 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79620 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

[Bug c++/93394] Request for operator* is ambiguous when binary and unary overloads are in different base classes

2020-01-22 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93394 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

[Bug middle-end/93399] [8/9/10 Regression] Annotate assembler option failure

2020-01-23 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93399 --- Comment #2 from Marek Polacek --- The error I see is: /tmp/ccmVatwF.s: Assembler messages: /tmp/ccmVatwF.s:90: Error: invalid character (0xa) in mnemonic /tmp/ccmVatwF.s:92: Error: unassigned file number 2 /tmp/ccmVatwF.s:92: Error: junk at

[Bug c++/93279] [9/10 Regression] C++ Template substitution ICE

2020-01-23 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93279 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

[Bug c++/93414] Bad diagnostics for dynamic_cast during constant evaluation: implementation details leak out

2020-01-24 Thread mpolacek at gcc dot gnu.org
||2020-01-24 CC||mpolacek at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Marek Polacek --- Mine. Users

[Bug c++/93279] [9/10 Regression] C++ Template substitution ICE

2020-01-24 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93279 --- Comment #5 from Marek Polacek --- Since r9-6405-gbddee796d0b4800b5ac3d7e7e9e315c23799424d, when we see in a lambda a use of an operator that might be overloaded, we do name lookup and save it away in an internal attribute on the lambda call o

[Bug c++/93279] [9/10 Regression] C++ Template substitution ICE

2020-01-24 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93279 --- Comment #6 from Marek Polacek --- This passes dg.exp but I haven't convinced it's the right solution so haven't posted it... --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -21849,8 +21849,12 @@ type_unification_real (tree tparms,

[Bug c++/93299] [9 Regression] ICE in tsubst_copy, at cp/pt.c:15779

2020-01-24 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93299 Marek Polacek changed: What|Removed |Added Summary|[9/10 Regression] ICE in|[9 Regression] ICE in

[Bug c++/93414] Bad diagnostics for dynamic_cast during constant evaluation: implementation details leak out

2020-01-25 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93414 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/93436] ICE during GIMPLE pass: sanopt with -fsanitize=address -fdump-tree-sanopt

2020-01-25 Thread mpolacek at gcc dot gnu.org
|UNCONFIRMED |NEW Last reconfirmed||2020-01-25 CC||mpolacek at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #2 from Marek Polacek --- Confirmed. during GIMPLE pass: sanopt

[Bug c++/93436] [9/10 Regression] ICE during GIMPLE pass: sanopt with -fsanitize=address -fdump-tree-sanopt

2020-01-25 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93436 Marek Polacek changed: What|Removed |Added Target Milestone|--- |9.3 Summary|ICE during GIMPLE

[Bug c++/93436] [9/10 Regression] ICE during GIMPLE pass: sanopt with -fsanitize=address -fdump-tree-sanopt

2020-01-25 Thread mpolacek at gcc dot gnu.org
at gcc dot gnu.org |mpolacek at gcc dot gnu.org

[Bug sanitizer/93436] [9 Regression] ICE during GIMPLE pass: sanopt with -fsanitize=address -fdump-tree-sanopt

2020-01-26 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93436 Marek Polacek changed: What|Removed |Added Summary|[9/10 Regression] ICE |[9 Regression] ICE during

[Bug c++/92948] internal compiler error: in tsubst_copy, at cp/pt.c:15788

2020-01-27 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92948 --- Comment #2 from Marek Polacek --- Because of the alias template build_converted_constant_expr produces a TARGET_EXPR containing a TEMPLATE_PARM_INDEX which makes it value-dependent. So we don't call get_template_parm_object here 7449

[Bug c++/92948] internal compiler error: in tsubst_copy, at cp/pt.c:15788

2020-01-27 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92948 --- Comment #3 from Marek Polacek --- Test I've been playing with: struct A { constexpr A(int) { } }; template struct B { using U = unsigned; }; template using U = B; //template::U> // ok template::U> // ICE //template::U> // error void

[Bug c++/92948] internal compiler error: in tsubst_copy, at cp/pt.c:15788

2020-01-27 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92948 --- Comment #4 from Marek Polacek --- A related test that I think should compile: struct A { constexpr A(int) { } }; template struct B { }; template void foo() { B b; // works with B<1> } void fn () { foo<1>(); }

[Bug c++/92948] internal compiler error: in tsubst_copy, at cp/pt.c:15788

2020-01-28 Thread mpolacek at gcc dot gnu.org
at gcc dot gnu.org |mpolacek at gcc dot gnu.org --- Comment #5 from Marek Polacek --- I have a patch that fixes these two issues (it uses IMPLICIT_CONV_EXPR).

[Bug c++/92948] internal compiler error: in tsubst_copy, at cp/pt.c:15788

2020-01-28 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92948 Marek Polacek changed: What|Removed |Added Keywords||ice-on-valid-code, patch,

[Bug c++/91754] [c++2a] Defining member function outside of class body fails to compile when containing class is templated on class-type NTTP

2020-01-29 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91754 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

[Bug c++/91754] [c++2a] Defining member function outside of class body fails to compile when containing class is templated on class-type NTTP

2020-01-29 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91754 Marek Polacek changed: What|Removed |Added Status|WAITING |NEW --- Comment #3 from Marek Polacek -

[Bug c++/91754] [c++2a] Defining member function outside of class body fails to compile when containing class is templated on class-type NTTP

2020-01-29 Thread mpolacek at gcc dot gnu.org
at gcc dot gnu.org |mpolacek at gcc dot gnu.org --- Comment #4 from Marek Polacek --- Testing a patch.

[Bug c++/92171] accept incorrect access of static constexpr member when read from a reference

2020-01-29 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92171 --- Comment #2 from Marek Polacek --- The constexpr evaluator doesn't see the "ref." part at all: VALUE is a static data member, so build_class_member_access_expr produces "value": (gdb) pt result unit-size align:8 warn_if_not

[Bug c++/92171] accept incorrect access of static constexpr member when read from a reference

2020-01-29 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92171 --- Comment #3 from Marek Polacek --- Not working on this now, needs to wait till GCC 11.

[Bug c++/92003] [8/9/10 Regression] constexpr-ness of char const* doesn't propagate

2020-01-29 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92003 Marek Polacek changed: What|Removed |Added Known to work||6.4.0 Target Milestone|---

[Bug c++/92948] internal compiler error: in tsubst_copy, at cp/pt.c:15788

2020-01-29 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92948 --- Comment #8 from Marek Polacek --- Fixed on trunk so far, will backport to 9 sometime soon.

[Bug c++/91803] statement-expressions are not allowed in template arguments

2020-01-29 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91803 Marek Polacek changed: What|Removed |Added Severity|normal |enhancement

[Bug c++/89565] [C++2a] ICE on template instantiating user defined non-type template from template value member

2020-01-29 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89565 Marek Polacek changed: What|Removed |Added CC||boris.rura at gmail dot com --- Comment

[Bug c++/90335] ICE with lambda as cnttp in a templated struct (segfault). C++2a

2020-01-29 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90335 Marek Polacek changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/88092] class nontype template deduction failed when providing type to class

2020-01-29 Thread mpolacek at gcc dot gnu.org
at gcc dot gnu.org |mpolacek at gcc dot gnu.org --- Comment #9 from Marek Polacek --- (In reply to Hana Dusíková from comment #5) > So minimal example is: > > template > struct S { > constexpr S(...) { } > }; > > template S(T) -> S; > > template struct

[Bug c++/88092] class nontype template deduction failed when providing type to class

2020-01-29 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88092 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/93313] g++: internal compiler error: Segmentation fault signal terminated program cc1plus

2020-01-29 Thread mpolacek at gcc dot gnu.org
||mpolacek at gcc dot gnu.org Resolution|--- |INVALID --- Comment #3 from Marek Polacek --- Closing.

[Bug c++/92650] internal compiler error: canonical types differ for identical types

2020-01-29 Thread mpolacek at gcc dot gnu.org
||mpolacek at gcc dot gnu.org Resolution|--- |FIXED --- Comment #3 from Marek Polacek --- The lazily_declare_fn ICE was fixed and I don't see any other ICE, assuming fixed.

[Bug c++/92432] Regression: ICE on non-constant expression as template argument

2020-01-29 Thread mpolacek at gcc dot gnu.org
||mpolacek at gcc dot gnu.org Resolution|--- |DUPLICATE --- Comment #4 from Marek Polacek --- Yes, it is a dup, but thanks for the nice testcase! *** This bug has been marked as a duplicate of bug 87765 ***

[Bug c++/87765] Internal compiler error: coerce_template_parms (8.2) or cxx_eval_constant_expression (trunk)

2020-01-29 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87765 Marek Polacek changed: What|Removed |Added CC||daniel at ekpyron dot org --- Comment #3

[Bug c++/87765] Internal compiler error: coerce_template_parms (8.2) or cxx_eval_constant_expression (trunk)

2020-01-29 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87765 --- Comment #4 from Marek Polacek --- A short test by Daniel Kirchner: struct X { int s(); }; template using Y = void; template static constexpr void t(X x) { Y v; }

[Bug c++/91212] [8/9/10 Regression] const ignored for ctor arguments within return since r8-2493-g4ce8c5dea53d8073

2020-01-29 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91212 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

[Bug c++/91212] [8/9/10 Regression] const ignored for ctor arguments within return since r8-2493-g4ce8c5dea53d8073

2020-01-29 Thread mpolacek at gcc dot gnu.org
at gcc dot gnu.org |mpolacek at gcc dot gnu.org

[Bug c++/93503] Duplicated warning on pure virtual implicit template in C++2a

2020-01-29 Thread mpolacek at gcc dot gnu.org
|UNCONFIRMED |NEW Last reconfirmed||2020-01-29 CC||mpolacek at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Marek Polacek --- Confirmed.

[Bug c++/93106] [c++2a] Deleted move constructor is not selected when returning an automatic variable

2020-01-30 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93106 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

[Bug c++/91212] [8/9/10 Regression] const ignored for ctor arguments within return since r8-2493-g4ce8c5dea53d8073

2020-01-30 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91212 --- Comment #3 from Marek Polacek --- Happens with a class too: struct T { int i; }; struct X { X(T&) { } // #1 X(const T&) { __builtin_abort (); } // #2 }; X fn () { T buf; return buf; } int main() { X c = fn (); } is it actually

[Bug c++/93513] internal compiler error internal compiler error: unexpected expression ‘(char)(e)’ of kind cast_expr

2020-01-30 Thread mpolacek at gcc dot gnu.org
||2020-01-30 CC||mpolacek at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Marek Polacek --- IT ICEs in

[Bug c++/91465] [9/10 Regression] unexpected expression of kind overload (ICE)

2020-01-30 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91465 Marek Polacek changed: What|Removed |Added CC||andij.cr at gmail dot com --- Comment #2

[Bug c++/93513] internal compiler error internal compiler error: unexpected expression ‘(char)(e)’ of kind cast_expr

2020-01-30 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93513 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/91465] [9/10 Regression] unexpected expression of kind overload (ICE)

2020-01-30 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91465 --- Comment #3 from Marek Polacek --- Another test: enum class error {}; template void afunction(F) { error{char(0)}; } 93513.C: In function ‘void afunction(F)’: 93513.C:4:16: internal compiler error: unexpected expression ‘(char)(0)’ of kin

[Bug c++/91212] [8/9/10 Regression] const ignored for ctor arguments within return since r8-2493-g4ce8c5dea53d8073

2020-01-30 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91212 --- Comment #4 from Marek Polacek --- Jason, do you want to change anything here? Though clang/icc/msvc++ seem to choose #1.

[Bug c++/92402] parsing error in lambda trail return type with decltype, statement expressions and structured bindings

2020-01-30 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92402 --- Comment #3 from Marek Polacek --- Even shorter: int a[1]; void f() { []() -> decltype(({auto&& [x] = a; 0;})) { return 0; }; } clang++ compiles it.

[Bug c++/92402] parsing error in lambda trail return type with decltype, statement expressions and structured bindings

2020-01-30 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92402 --- Comment #4 from Marek Polacek --- Not a regression though, so I'll leave it for GCC 11.

[Bug c++/92434] noexcept couldn't be deduced in function template

2020-01-30 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92434 --- Comment #2 from Marek Polacek --- Extended testcase: template void foo_false(void(*)() noexcept(B)) { static_assert (!B); } template void foo_true(void(*)() noexcept(B)) { static_assert (B); } void f(); void fn() noexcept; void bar()

[Bug c++/92434] noexcept couldn't be deduced in function template

2020-01-30 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92434 --- Comment #3 from Marek Polacek --- To match clang we could use --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -21470,6 +21470,12 @@ uses_deducible_template_parms (tree type) for (; parm; parm = TREE_CHAIN (parm)) if (uses_deducible_templa

[Bug c++/92434] noexcept couldn't be deduced in function template

2020-01-30 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92434 --- Comment #4 from Marek Polacek --- That should probably be + if (spec && TREE_PURPOSE (spec) && deducible_expression (TREE_PURPOSE (spec))) Note that clang fails if noexcept(B) is changed to e.g. noexcept(!B).

[Bug c++/92434] [DR 2355] noexcept couldn't be deduced in function template

2020-01-30 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92434 Marek Polacek changed: What|Removed |Added Summary|noexcept couldn't be|[DR 2355] noexcept couldn't

[Bug c++/91465] [9/10 Regression] unexpected expression of kind overload (ICE)

2020-01-30 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91465 --- Comment #4 from Marek Polacek --- This is the fix, thought I recall it broke something. But we want to use fold_ here because we can have a non-dependent template code like CAST_EXPR. --- a/gcc/cp/typeck2.c +++ b/gcc/cp/typeck2.c @@ -981,7

[Bug c++/92169] crash on referring to a local class member by unqualified name from outside the enclosing function

2020-01-31 Thread mpolacek at gcc dot gnu.org
||mpolacek at gcc dot gnu.org --- Comment #5 from Marek Polacek --- Confirmed with -g. #350 0x00f32eea in gen_subprogram_die (decl=, context_die=) at /home/mpolacek/src/gcc/gcc/dwarf2out.c:22942 #351 0x00f3c548 in force_decl_die (decl=) at /home/mpolacek/src

[Bug c++/92169] crash on referring to a local class member by unqualified name from outside the enclosing function

2020-01-31 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92169 --- Comment #6 from Marek Polacek --- Started with r0-116587-g0fd0752e83525409addcdb904c67dc535bd5c1d1: commit 0fd0752e83525409addcdb904c67dc535bd5c1d1 Author: Jason Merrill Date: Thu May 3 12:19:02 2012 -0400 dwarf2out.c (modified_type_

[Bug c++/91465] [9/10 Regression] unexpected expression of kind overload (ICE)

2020-01-31 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91465 --- Comment #5 from Marek Polacek --- (In reply to Marek Polacek from comment #4) > This is the fix, thought I recall it broke something. That was constexpr-ex4.C: constexpr-ex4.C:13:11: error: no matching function for call to ‘A::operator int

[Bug c++/93527] Internal compiler error when static_assert concept std::regular on class with variadic constrained constructor.

2020-01-31 Thread mpolacek at gcc dot gnu.org
||2020-01-31 CC||mpolacek at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #2 from Marek Polacek --- tar: This does not look like a tar archive unzip x.zip also doesn't work

[Bug c++/93527] Internal compiler error when static_assert concept std::regular on class with variadic constrained constructor.

2020-01-31 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93527 Marek Polacek changed: What|Removed |Added Status|WAITING |NEW --- Comment #4 from Marek Polacek -

[Bug c++/93530] [10 Regression] ICE on invalid alignas

2020-01-31 Thread mpolacek at gcc dot gnu.org
||2020-01-31 CC||mpolacek at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Marek Polacek --- Confirmed.

[Bug c++/93530] [10 Regression] ICE on invalid alignas

2020-01-31 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93530 --- Comment #2 from Marek Polacek --- r10-4969-g1723e1bedb9545c45619c4023729755243524584

[Bug c++/93530] [10 Regression] ICE on invalid alignas

2020-01-31 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93530 Marek Polacek changed: What|Removed |Added Target Milestone|--- |10.0 --- Comment #3 from Marek Polacek

[Bug c++/93530] [10 Regression] ICE on invalid alignas

2020-01-31 Thread mpolacek at gcc dot gnu.org
at gcc dot gnu.org |mpolacek at gcc dot gnu.org --- Comment #4 from Marek Polacek --- Or, in fact, grokdeclarator should use cplus_decl_attributes instead of decl_attributes.

[Bug c++/93530] [10 Regression] ICE on invalid alignas

2020-01-31 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93530 --- Comment #5 from Marek Polacek --- > b) that alignas is incorrectly placed Bug 90847

[Bug c++/93530] [10 Regression] ICE on invalid alignas

2020-02-02 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93530 Marek Polacek changed: What|Removed |Added Keywords||patch --- Comment #7 from Marek Polacek

[Bug c++/93530] [10 Regression] ICE on invalid alignas

2020-02-02 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93530 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/93549] [10 Regression] ICE / Segfault in constexpr expansion involving vector_size(16) short COND_EXPR

2020-02-03 Thread mpolacek at gcc dot gnu.org
||2020-02-03 CC||mpolacek at gcc dot gnu.org Target Milestone|--- |10.0 Ever confirmed|0 |1 --- Comment #1 from Marek Polacek --- Confirmed.

[Bug c++/93549] [10 Regression] ICE / Segfault in constexpr expansion involving vector_size(16) short COND_EXPR

2020-02-03 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93549 --- Comment #2 from Marek Polacek --- Started with r10-3661-g8e007055dd1374ca4c44406a4ead172be0dfa3a8

[Bug c++/93549] [10 Regression] ICE / Segfault in constexpr expansion involving vector_size(16) short COND_EXPR

2020-02-03 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93549 --- Comment #3 from Marek Polacek --- Looking into why the above commit caused this.

[Bug c++/93559] internal compiler error: side-effects element in no-side-effects CONSTRUCTOR

2020-02-03 Thread mpolacek at gcc dot gnu.org
, ||needs-bisection Status|UNCONFIRMED |NEW Last reconfirmed||2020-02-03 CC||mpolacek at gcc dot gnu.org Target Milestone|--- |10.0 Ever

[Bug c++/93559] internal compiler error: side-effects element in no-side-effects CONSTRUCTOR

2020-02-03 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93559 Marek Polacek changed: What|Removed |Added Keywords|needs-bisection | --- Comment #3 from Marek Polacek ---

[Bug c++/93559] internal compiler error: side-effects element in no-side-effects CONSTRUCTOR

2020-02-03 Thread mpolacek at gcc dot gnu.org
at gcc dot gnu.org |mpolacek at gcc dot gnu.org

[Bug c++/93559] internal compiler error: side-effects element in no-side-effects CONSTRUCTOR

2020-02-03 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93559 --- Comment #4 from Marek Polacek --- struct E { int d[10]; }; struct S { constexpr int operator()(char) { return 42; } }; template struct X { constexpr static E foo(S s) { return {{s(1)}}; } }; S s; static_assert((X::foo(s), 1), "");

[Bug middle-end/93582] New: -Warray-bounds gives error: array subscript 0 is outside array bounds of struct E[1]

2020-02-04 Thread mpolacek at gcc dot gnu.org
Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: mpolacek at gcc dot gnu.org Target Milestone: --- Reduced from libXt: struct E { } e; struct A { unsigned long *l; }; struct C { unsigned long *l; } c

[Bug middle-end/93582] [10 Regression] -Warray-bounds gives error: array subscript 0 is outside array bounds of struct E[1]

2020-02-04 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93582 Marek Polacek changed: What|Removed |Added CC||msebor at gcc dot gnu.org Target Miles

[Bug c++/92812] Implement P1975R0: Fixing the wording of parenthesized aggregate-initialization

2020-02-04 Thread mpolacek at gcc dot gnu.org
at gcc dot gnu.org |mpolacek at gcc dot gnu.org --- Comment #2 from Marek Polacek --- Mine.

[Bug middle-end/93582] [10 Regression] -Warray-bounds gives error: array subscript 0 is outside array bounds of struct E[1]

2020-02-04 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93582 --- Comment #3 from Marek Polacek --- This is about us not accepting the code anymore, I think it's what libXt relies on. Quoting Adam J.: "Where GRABEXT here is just doing the standard C trick for incrementing past the current struct and retur

[Bug c++/93551] [10 Regression] Call from templated function to constrained constructor segfaults when attempting to narrow to bool

2020-02-04 Thread mpolacek at gcc dot gnu.org
||mpolacek at gcc dot gnu.org

[Bug c++/93559] [10 Regression] ICE: side-effects element in no-side-effects CONSTRUCTOR

2020-02-04 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93559 Marek Polacek changed: What|Removed |Added Priority|P3 |P1

[Bug c++/93549] [10 Regression] ICE / Segfault in constexpr expansion involving vector_size(16) short COND_EXPR

2020-02-04 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93549 Marek Polacek changed: What|Removed |Added Priority|P3 |P1

[Bug c++/92003] [8/9/10 Regression] constexpr-ness of char const* doesn't propagate

2020-02-04 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92003 Marek Polacek changed: What|Removed |Added Priority|P3 |P2

[Bug c++/91793] [8/9/10 Regression] ICE on unexpanded parameter pack in lambda

2020-02-04 Thread mpolacek at gcc dot gnu.org
||mpolacek at gcc dot gnu.org

<    5   6   7   8   9   10   11   12   13   14   >