[Bug c++/96078] [10 Regression] flatten attribute on constructor and destructor causes spurious warning
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96078 Jason Merrill changed: What|Removed |Added Known to work||11.0 Known to fail|11.0| Summary|[10/11 Regression] flatten |[10 Regression] flatten |attribute on constructor|attribute on constructor |and destructor causes |and destructor causes |spurious warning|spurious warning --- Comment #5 from Jason Merrill --- Fixed for GCC 11 so far.
[Bug c++/95675] [8/9/10/11 Regression] internal compiler error: in build_over_call
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95675 Jason Merrill changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org Status|NEW |ASSIGNED
[Bug c++/96078] [10 Regression] flatten attribute on constructor and destructor causes spurious warning
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96078 Jason Merrill changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED --- Comment #7 from Jason Merrill --- And 10.3.
[Bug c++/99108] ICE in ix86_get_function_versions_dispatcher, at config/i386/i386-features.c:2862
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99108 Jason Merrill changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED|RESOLVED Target Milestone|--- |11.0 --- Comment #6 from Jason Merrill --- I don't think this needs backporting, but could do if needed. The workaround of moving the declarations to namespace scope seems sufficient for older compilers.
[Bug c++/95675] [8/9/10/11 Regression] internal compiler error: in build_over_call
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95675 Jason Merrill changed: What|Removed |Added Resolution|--- |FIXED Target Milestone|8.5 |9.4 Status|ASSIGNED|RESOLVED --- Comment #11 from Jason Merrill --- Fixed for 9.4/10.3/11.
[Bug c++/99445] [11 Regression] ICE in hashtab_chk_error, at hash-table.c:137 since r11-7011-g6e0a231a4aa2407b
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99445 Jason Merrill changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org Status|NEW |ASSIGNED
[Bug c++/99445] [11 Regression] ICE in hashtab_chk_error, at hash-table.c:137 since r11-7011-g6e0a231a4aa2407b
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99445 Jason Merrill changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED|RESOLVED --- Comment #9 from Jason Merrill --- Fixed.
[Bug c++/99584] [11 Regression] ICE Segmentation fault when expanding lambda noexcept specifier with invalid parameter pack
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99584 Jason Merrill changed: What|Removed |Added Status|NEW |ASSIGNED CC||jason at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org
[Bug c++/99584] [11 Regression] ICE Segmentation fault when expanding lambda noexcept specifier with invalid parameter pack
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99584 Jason Merrill changed: What|Removed |Added Keywords|ice-on-invalid-code |ice-on-valid-code --- Comment #2 from Jason Merrill --- Probably the same issue as PR 95583.
[Bug c++/99584] [11 Regression] ICE Segmentation fault when expanding lambda noexcept specifier with invalid parameter pack
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99584 Jason Merrill changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED|RESOLVED --- Comment #4 from Jason Merrill --- Fixed.
[Bug c++/99583] Parameter packs not expanded in lambda noexcept specifier
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99583 Jason Merrill changed: What|Removed |Added CC||jason at gcc dot gnu.org Resolution|--- |DUPLICATE Status|NEW |RESOLVED --- Comment #3 from Jason Merrill --- Same issue. *** This bug has been marked as a duplicate of bug 99584 ***
[Bug c++/99584] [11 Regression] ICE Segmentation fault when expanding lambda noexcept specifier with invalid parameter pack
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99584 --- Comment #5 from Jason Merrill --- *** Bug 99583 has been marked as a duplicate of this bug. ***
[Bug c++/99599] [11 Regression] Concepts requirement falsely reporting cyclic dependency, breaks tag_invoke pattern
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99599 Jason Merrill changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED |SUSPENDED Last reconfirmed||2021-04-01 --- Comment #2 from Jason Merrill --- (In reply to the_gamester28 from comment #0) > It seems that the template requirements of invoke_tag(bar_tag, int) are > considered while evaluating line marked "here". Requirements of irrelevant > overloads should not be considered, as it can potentially lead to falsely > reporting a cyclic dependency. This is as specified by http://wg21.link/cwg2369 I think it would be reasonable to allow a compiler to accept the testcase under a generalization of 13.9.1/9: "If the function selected by overload resolution (12.4) can be determined without instantiating a class template definition, it is unspecified whether that instantiation actually takes place." But that does not require a compiler to accept it. It might make sense to check non-dependent conversions that don't require template instantiation, then constraints, then non-dependent conversions that do require template instantiation. But that's a matter for the committee; G++ is conforming to the current working paper.
[Bug c++/97938] [9/10/11 Regression] g++ crash when inferring type of auto parameter pack in lambda capture
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97938 Jason Merrill changed: What|Removed |Added Status|NEW |ASSIGNED CC||jason at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org --- Comment #2 from Jason Merrill --- Removed library dependency: template auto apply(F&& f, Args&&... args) { return f(args...); } template T&& forward(T&& t); template int print_args(Args&&... args) { return sizeof...(args); } template auto fwd(const T1& t1, const T2& t2) { return ::apply([&t2] (auto&&... ts1) { return ::apply([...ts1 = forward(ts1)] (auto&&... ts2) { return print_args(ts1..., forward(ts2)...); }, t2); }, t1); } int main() { auto t1 = 1; auto t2 = 2; return fwd(t1, t2); }
[Bug c++/97938] [9/10/11 Regression] g++ crash when inferring type of auto parameter pack in lambda capture
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97938 --- Comment #3 from Jason Merrill --- Reduced more: template int sink(Args&&... args) { return 2; } template auto fwd(const T1& t1) { return [] (auto&&... ts1) { return [...ts1 = ts1] () { return sink(ts1...); }(); }(); } int main() { return fwd(1); }
[Bug c++/97938] [9/10 Regression] g++ crash when inferring type of auto parameter pack in lambda capture
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97938 Jason Merrill changed: What|Removed |Added Summary|[9/10/11 Regression] g++ |[9/10 Regression] g++ |crash when inferring type |crash when inferring type |of auto parameter pack in |of auto parameter pack in |lambda capture |lambda capture --- Comment #5 from Jason Merrill --- Fixed for GCC 11 so far. Note that the original testcase has a syntax error in print_args; the fold-expression line should be (std::cout << ... << args);
[Bug c++/96645] [9/10/11 Regression] std::variant default constructor
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96645 --- Comment #8 from Jason Merrill --- (In reply to Patrick Palka from comment #7) > > Maybe the note in [class.mem.general]/7 is relevant: > > A complete-class context of a nested class is also a complete-class > context of any enclosing class, if the nested class is defined within the > member-specification of the enclosing class. > > We can't determine if A is constructible until we parse the initializer for > DataWithStruct::A::number. And according to the above, we can't parse this > initializer until DataWithStruct is complete. Right. > Looks like PR81359 is closely related. Yes. Perhaps PR81359 or PR88368, or both, were wrongly resolved. We cannot correctly resolve is_nothrow_constructible until we've parsed the DMI. Given that, we have three options: 1) Conservatively say no. 2) Optimistically guess yes. 3) Non-SFINAE error. PR81359 changed our behavior from 3 to 1. #2 seems the clear worst choice, as it can lead to things unexpectedly throwing. #3 means people have to jump through hoops to make their code compile. #1 means silently pessimized code for anything that relies on std::is_nothrow_constructible in the rest of the translation, since the value is permanently cached. If we choose #1, we have another choice for is_constructible: should it be true (giving A() a throwing exception-spec) or false? PR88368 changed our choice from true to false. Any opinions on what our behavior should be? Should there be an LWG issue? This is related to CWG1890, and the general issue that we don't currently parse on demand like we do instantiate on demand for templates. So one workaround is to wrap DataWith* in a dummy template: #include using namespace std; template struct DataWithStruct { struct A { int number = 5; }; /*typename*/ is_nothrow_constructible::type t = true_type{}; }; DataWithStruct<> d; // OK or move the nested class out so we can finish parsing it before the use: #include void testVarStruct() { struct A { int number = 5; }; struct B { bool flag = false; }; struct DataWithStruct { using Member = std::variant; Member data; }; auto d = DataWithStruct{}; }
[Bug c++/96645] [9/10/11 Regression] std::variant default constructor
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96645 --- Comment #9 from Jason Merrill --- (In reply to Jason Merrill from comment #8) > This is related to CWG1890, and the general issue that we don't currently > parse on demand like we do instantiate on demand for templates. ("We" in this sentence is the C++ standard.)
[Bug c++/97900] [9/10/11 Regression] g++ crashes when instantiating a templated function with a template-type vector parameter
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97900 Jason Merrill changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org Status|NEW |ASSIGNED
[Bug c++/90664] [9/10/11 regression] noexcept confuses template argument deduction
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90664 Jason Merrill changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org CC||jason at gcc dot gnu.org
[Bug c++/91217] [8/9/10/11 Regression] Returning std::array from lambda results in an extra copy step on return
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91217 Jason Merrill changed: What|Removed |Added Status|NEW |ASSIGNED CC||jason at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org
[Bug c++/91217] [8/9/10 Regression] Returning std::array from lambda results in an extra copy step on return
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91217 Jason Merrill changed: What|Removed |Added Summary|[8/9/10/11 Regression] |[8/9/10 Regression] |Returning std::array from |Returning std::array from |lambda results in an extra |lambda results in an extra |copy step on return |copy step on return --- Comment #6 from Jason Merrill --- Fixed for GCC 11 so far.
[Bug c++/99643] [8/9/10/11 Regression] internal compiler error in build_over_call, involving array new and copy elision
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99643 Jason Merrill changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org CC||jason at gcc dot gnu.org Status|NEW |ASSIGNED
[Bug c++/99643] [8/9/10 Regression] internal compiler error in build_over_call, involving array new and copy elision
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99643 Jason Merrill changed: What|Removed |Added Summary|[8/9/10/11 Regression] |[8/9/10 Regression] |internal compiler error in |internal compiler error in |build_over_call, involving |build_over_call, involving |array new and copy elision |array new and copy elision --- Comment #3 from Jason Merrill --- Fixed for GCC 11 so far.
[Bug c++/99201] [8/9/10/11 Regression] ICE in tsubst_copy, at cp/pt.c:16581 since r8-7613-g1456e764105702a0
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99201 Jason Merrill changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org
[Bug c++/90664] [9/10 regression] noexcept confuses template argument deduction
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90664 Jason Merrill changed: What|Removed |Added Summary|[9/10/11 regression]|[9/10 regression] noexcept |noexcept confuses template |confuses template argument |argument deduction |deduction Known to work||11.0 Known to fail|11.0| --- Comment #4 from Jason Merrill --- Fixed for GCC 11 so far.
[Bug c++/97900] [9/10 Regression] g++ crashes when instantiating a templated function with a template-type vector parameter
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97900 Jason Merrill changed: What|Removed |Added Summary|[9/10/11 Regression] g++|[9/10 Regression] g++ |crashes when instantiating |crashes when instantiating |a templated function with a |a templated function with a |template-type vector|template-type vector |parameter |parameter --- Comment #4 from Jason Merrill --- Fixed for GCC 11 so far.
[Bug c++/99066] [8/9/10/11 Regression] non-weak definition emitted for explicit instantiation declaration
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99066 Jason Merrill changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org Status|NEW |ASSIGNED
[Bug c++/99066] [8/9/10/11 Regression] non-weak definition emitted for explicit instantiation declaration
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99066 --- Comment #3 from Jason Merrill --- (In reply to Jakub Jelinek from comment #2) > Perhaps caused by PR23691 changes? r104041, yes. Bizarre that this went unnoticed for over 15 years.
[Bug c++/99066] [8/9/10 Regression] non-weak definition emitted for explicit instantiation declaration
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99066 Jason Merrill changed: What|Removed |Added Summary|[8/9/10/11 Regression] |[8/9/10 Regression] |non-weak definition emitted |non-weak definition emitted |for explicit instantiation |for explicit instantiation |declaration |declaration --- Comment #5 from Jason Merrill --- Fixed for 11 so far.
[Bug c++/99201] [8/9/10 Regression] ICE in tsubst_copy, at cp/pt.c:16581 since r8-7613-g1456e764105702a0
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99201 Jason Merrill changed: What|Removed |Added Summary|[8/9/10/11 Regression] ICE |[8/9/10 Regression] ICE in |in tsubst_copy, at |tsubst_copy, at |cp/pt.c:16581 since |cp/pt.c:16581 since |r8-7613-g1456e764105702a0 |r8-7613-g1456e764105702a0 --- Comment #8 from Jason Merrill --- Fixed for 11 so far.
[Bug c++/95870] [8/9/10/11 Regression] ICE (segmentation fault) in most_general_template(), in gcc/cp/pt.c
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95870 Jason Merrill changed: What|Removed |Added CC||jason at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org Status|NEW |ASSIGNED
[Bug c++/95317] [8/9/10 Regression] ICE on valid C++14 code, in tsubst_copy, at cp/pt.c:15649
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95317 Jason Merrill changed: What|Removed |Added Known to work||11.0 Summary|[8/9/10/11 Regression] ICE |[8/9/10 Regression] ICE on |on valid C++14 code, in |valid C++14 code, in |tsubst_copy, at |tsubst_copy, at |cp/pt.c:15649 |cp/pt.c:15649 Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org --- Comment #4 from Jason Merrill --- Fixed for 11 so far.
[Bug c++/98440] [9/10/11 Regression] Accepts ill-formed reinterpret_cast(1)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98440 Jason Merrill changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org Status|NEW |ASSIGNED
[Bug c++/96311] [8/9/10/11 Regression] false positive for -Wunused-but-set-variable (const/constexpr identifier used in generic lambda)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96311 Jason Merrill changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org
[Bug c++/96311] [8/9/10 Regression] false positive for -Wunused-but-set-variable (const/constexpr identifier used in generic lambda)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96311 Jason Merrill changed: What|Removed |Added Known to work||11.0 Summary|[8/9/10/11 Regression] |[8/9/10 Regression] false |false positive for |positive for |-Wunused-but-set-variable |-Wunused-but-set-variable |(const/constexpr identifier |(const/constexpr identifier |used in generic lambda) |used in generic lambda) --- Comment #7 from Jason Merrill --- Fixed for 11 so far.
[Bug c++/98440] [9/10 Regression] Accepts ill-formed reinterpret_cast(1)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98440 Jason Merrill changed: What|Removed |Added Summary|[9/10/11 Regression]|[9/10 Regression] Accepts |Accepts ill-formed |ill-formed |reinterpret_cast(1) |reinterpret_cast(1) Known to fail|11.0| Known to work||11.0 --- Comment #3 from Jason Merrill --- Fixed for 11 so far.
[Bug c++/95870] [8/9/10 Regression] ICE (segmentation fault) in most_general_template(), in gcc/cp/pt.c
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95870 Jason Merrill changed: What|Removed |Added Known to work||11.0 Summary|[8/9/10/11 Regression] ICE |[8/9/10 Regression] ICE |(segmentation fault) in |(segmentation fault) in |most_general_template(), in |most_general_template(), in |gcc/cp/pt.c |gcc/cp/pt.c --- Comment #9 from Jason Merrill --- Fixed for 11 so far.
[Bug c++/98481] [10 Regression] std::vector::size_type as return type gets tagged with abi:cxx11
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98481 Jason Merrill changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #8 from Jason Merrill --- Fixed in 10.3 with explicit -fabi-version=0 or =15. Fixed in 11 by default.
[Bug c++/98810] [9/10 Regression] [C++20] ICE in tsubst_copy, at cp/pt.c:16771
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98810 Jason Merrill changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED|RESOLVED --- Comment #9 from Jason Merrill --- Fixed for 9.4/10.3/11.
[Bug c++/99795] [8/9/10/11 Regression] -Wnarrowing/-Woverflow false-negative in constant expression in undeduced context
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99795 Jason Merrill changed: What|Removed |Added Status|NEW |ASSIGNED CC||jason at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org
[Bug c++/91241] [8/9/10/11 Regression] internal compiler error: symtab_node::verify failed
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91241 Jason Merrill changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org Status|NEW |ASSIGNED
[Bug c++/91241] [8/9/10 Regression] internal compiler error: symtab_node::verify failed
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91241 Jason Merrill changed: What|Removed |Added Known to work||11.0 Summary|[8/9/10/11 Regression] |[8/9/10 Regression] |internal compiler error:|internal compiler error: |symtab_node::verify failed |symtab_node::verify failed --- Comment #15 from Jason Merrill --- Fixed for GCC 11 so far.
[Bug c++/99901] [8/9/10/11 Regression] static const class var implemented with constexpr doesn't emit symbols in C++17 mode
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99901 Jason Merrill changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org Status|NEW |ASSIGNED
[Bug c++/99901] [8/9/10 Regression] static const class var implemented with constexpr doesn't emit symbols in C++17 mode
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99901 Jason Merrill changed: What|Removed |Added Known to work||11.0 Keywords|wrong-code |ABI Summary|[8/9/10/11 Regression] |[8/9/10 Regression] static |static const class var |const class var implemented |implemented with constexpr |with constexpr doesn't emit |doesn't emit symbols in |symbols in C++17 mode |C++17 mode | --- Comment #3 from Jason Merrill --- Fixed for 11 so far.
[Bug c++/99909] The value of 'std::is_integral_v' is not usable in a constant expression
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99909 Jason Merrill changed: What|Removed |Added CC||jason at gcc dot gnu.org Last reconfirmed||2021-04-06 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Blocks||67491 Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67491 [Bug 67491] [meta-bug] concepts issues
[Bug c++/96673] [8/9/10/11 Regression] Friend class with templates and default constructor not recognized in C++14 or later
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96673 Jason Merrill changed: What|Removed |Added CC||jason at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org Status|NEW |ASSIGNED
[Bug c++/96673] [8/9/10 Regression] Friend class with templates and default constructor not recognized in C++14 or later
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96673 Jason Merrill changed: What|Removed |Added Known to work||11.0 Summary|[8/9/10/11 Regression] |[8/9/10 Regression] Friend |Friend class with templates |class with templates and |and default constructor not |default constructor not |recognized in C++14 or |recognized in C++14 or |later |later --- Comment #4 from Jason Merrill --- Fixed for 11 so far.
[Bug c++/99795] [8/9/10/11 Regression] -Wnarrowing/-Woverflow false-negative in constant expression in undeduced context
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99795 --- Comment #2 from Jason Merrill --- Created attachment 50524 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50524&action=edit WIP Fix This patch uses IMPLICIT_CONV_EXPR to get the narrowing error, but more and more changes are being necessary to prevent regressions; this isn't going to be safe for GCC 11 at this point, so I'm going to put it aside for now.
[Bug c++/99795] [8/9/10/11 Regression] -Wnarrowing/-Woverflow false-negative in constant expression in undeduced context
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99795 Jason Merrill changed: What|Removed |Added Assignee|jason at gcc dot gnu.org |unassigned at gcc dot gnu.org Status|ASSIGNED|NEW
[Bug c++/92918] [8/9/10 Regression] Does not do name lookup when using from base class
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92918 Jason Merrill changed: What|Removed |Added Status|NEW |ASSIGNED CC||jason at gcc dot gnu.org Known to work||11.0 Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org Summary|[8/9/10/11 Regression] Does |[8/9/10 Regression] Does |not do name lookup when |not do name lookup when |using from base class |using from base class --- Comment #5 from Jason Merrill --- Fixed for 11 so far.
[Bug c++/52625] [8/9/10/11 Regression] Incorrect specialization semantics of friend class template declaration
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52625 Jason Merrill changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org
[Bug c++/41723] [8/9/10/11 Regression] Error when using a qualified name to declare a nested template instantiation as a friend of the containing template
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41723 Jason Merrill changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org CC||jason at gcc dot gnu.org Status|NEW |ASSIGNED
[Bug c++/41723] [8/9/10 Regression] Error when using a qualified name to declare a nested template instantiation as a friend of the containing template
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41723 Jason Merrill changed: What|Removed |Added Summary|[8/9/10/11 Regression] |[8/9/10 Regression] Error |Error when using a |when using a qualified name |qualified name to declare a |to declare a nested |nested template |template instantiation as a |instantiation as a friend |friend of the containing |of the containing template |template Known to work||11.0 --- Comment #6 from Jason Merrill --- Fixed for 11 so far.
[Bug c++/52625] [8/9/10 Regression] Incorrect specialization semantics of friend class template declaration
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52625 Jason Merrill changed: What|Removed |Added Known to work||11.0 Summary|[8/9/10/11 Regression] |[8/9/10 Regression] |Incorrect specialization|Incorrect specialization |semantics of friend class |semantics of friend class |template declaration|template declaration --- Comment #8 from Jason Merrill --- Fixed for 11 so far.
[Bug c++/94529] [8/9/10/11 Regression] Wrong error message for template member function specialization
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94529 Jason Merrill changed: What|Removed |Added Status|NEW |ASSIGNED CC||jason at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org
[Bug c++/94529] [8/9/10 Regression] Wrong error message for template member function specialization
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94529 Jason Merrill changed: What|Removed |Added Summary|[8/9/10/11 Regression] |[8/9/10 Regression] Wrong |Wrong error message for |error message for template |template member function|member function |specialization |specialization Known to work||11.0 --- Comment #4 from Jason Merrill --- Fixed for 11 so far.
[Bug c++/91849] [8/9/10/11 Regression] Misleading diagnostic message when binding reference to unrelated type
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91849 Jason Merrill changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org CC||jason at gcc dot gnu.org Status|NEW |ASSIGNED
[Bug c++/91849] [8/9/10 Regression] Misleading diagnostic message when binding reference to unrelated type
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91849 Jason Merrill changed: What|Removed |Added Summary|[8/9/10/11 Regression] |[8/9/10 Regression] |Misleading diagnostic |Misleading diagnostic |message when binding|message when binding |reference to unrelated type |reference to unrelated type Known to work||11.0 --- Comment #7 from Jason Merrill --- Fixed for 11 so far.
[Bug tree-optimization/86465] [8/9/10/11 Regression] C++17 triggers: ‘’ may be used uninitialized in this function
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86465 Jason Merrill changed: What|Removed |Added CC||jason at gcc dot gnu.org Component|c++ |tree-optimization --- Comment #12 from Jason Merrill --- Changing component.
[Bug c++/86960] [8/9/10/11 Regression] ICE on specialization of member template with fixed parameter pack
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86960 --- Comment #9 from Jason Merrill --- Created attachment 50531 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50531&action=edit WIP patches Here's that 2019 work in progress, relative to r267647.
[Bug c++/83502] [8/9/10/11 Regression] bogus -Wattributes for always_inline and noinline on function template specialization
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83502 Jason Merrill changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |DUPLICATE Target Milestone|8.5 |8.0 CC||jason at gcc dot gnu.org --- Comment #7 from Jason Merrill --- This seems to have been fixed by the patch for PR83503. *** This bug has been marked as a duplicate of bug 83503 ***
[Bug c++/83503] [8 Regression] bogus -Wattributes for const and pure on function template specialization
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83503 --- Comment #24 from Jason Merrill --- *** Bug 83502 has been marked as a duplicate of this bug. ***
[Bug tree-optimization/94905] [10/11 Regression] Bogus warning -Werror=maybe-uninitialized
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94905 Jason Merrill changed: What|Removed |Added CC||jason at gcc dot gnu.org Component|c++ |tree-optimization --- Comment #11 from Jason Merrill --- Changing component.
[Bug c++/90451] [8/9/10/11 Regression] "static" function which added "deprecated" print deprecated warning >1 times (twice or even 3 times)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90451 Jason Merrill changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org
[Bug c++/90451] [8/9/10/11 Regression] "static" function which added "deprecated" print deprecated warning >1 times (twice or even 3 times)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90451 --- Comment #8 from Jason Merrill --- Created attachment 50537 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50537&action=edit WIP Fix Here's an approach that moves the mark_used calls closer to where the functions are actually used. We might also try moving the calls the other way, to as soon as we have a unique result. Either way, this is too risky for a diagnostic issue at this point in the release cycle, so deferring.
[Bug c++/99547] [11 regression] g++.dg/modules/xtreme-header-5_c.C -std=c++2a ICE
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99547 Jason Merrill changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|--- |FIXED CC||jason at gcc dot gnu.org --- Comment #4 from Jason Merrill --- (In reply to Christophe Lyon from comment #3) > Apparently not, the last occurrence was with r11-7662 > (g:9844eeff5abd129fab5a4cbd004b814c073a95a1) Closing, then, thanks.
[Bug c++/100006] [8/9/10/11 Regression] ICE: in dependent_type_p, at cp/pt.c:26745
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=16 Jason Merrill changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org
[Bug c++/99180] [10/11 Regression] ICE with alias template and empty parameter pack
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99180 Jason Merrill changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org Status|NEW |ASSIGNED
[Bug c++/99180] [10 Regression] ICE with alias template and empty parameter pack
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99180 Jason Merrill changed: What|Removed |Added Known to work||11.0 Summary|[10/11 Regression] ICE with |[10 Regression] ICE with |alias template and empty|alias template and empty |parameter pack |parameter pack --- Comment #6 from Jason Merrill --- Fixed for 11 so far.
[Bug c++/95486] ICE for alias CTAD with non-dependent argument and constrained constructor
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95486 Jason Merrill changed: What|Removed |Added Target Milestone|--- |11.0 See Also||https://gcc.gnu.org/bugzill ||a/show_bug.cgi?id=93295 --- Comment #7 from Jason Merrill --- (In reply to Johel Ernesto Guerrero Peña from comment #5) > Thank you. I was under the mistaken impression that the above was only a > partial solution. Adding the following deduction guide restores the ICE. See > https://godbolt.org/z/fej7WT. > ```C++ > template > X(U) -> X; > ``` That's bug 93295; let's leave this PR as the issue Patrick fixed.
[Bug c++/99118] ICE in alias_ctad_tweaks, at cp/pt.c:28569
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99118 Jason Merrill changed: What|Removed |Added Resolution|--- |DUPLICATE Status|NEW |RESOLVED --- Comment #6 from Jason Merrill --- Dup. *** This bug has been marked as a duplicate of bug 93295 ***
[Bug c++/93295] ICE in alias_ctad_tweaks
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93295 Jason Merrill changed: What|Removed |Added CC||wang_feng at live dot com --- Comment #10 from Jason Merrill --- *** Bug 99118 has been marked as a duplicate of this bug. ***
[Bug c++/96873] Internal compiler error in alias_ctad_tweaks
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96873 Jason Merrill changed: What|Removed |Added CC||jason at gcc dot gnu.org Resolution|--- |DUPLICATE Status|NEW |RESOLVED --- Comment #8 from Jason Merrill --- Dup. *** This bug has been marked as a duplicate of bug 93295 ***
[Bug c++/93295] ICE in alias_ctad_tweaks
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93295 Jason Merrill changed: What|Removed |Added CC||mateusz.pusz at gmail dot com --- Comment #11 from Jason Merrill --- *** Bug 96873 has been marked as a duplicate of this bug. ***
[Bug c++/93295] ICE in alias_ctad_tweaks
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93295 Jason Merrill changed: What|Removed |Added Status|NEW |RESOLVED CC||jason at gcc dot gnu.org Resolution|--- |DUPLICATE --- Comment #12 from Jason Merrill --- Let's call this a duplicate of the one that already has the regression tag. *** This bug has been marked as a duplicate of bug 99180 ***
[Bug c++/99180] [10 Regression] ICE with alias template and empty parameter pack
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99180 Jason Merrill changed: What|Removed |Added CC||ensadc at mailnesia dot com --- Comment #7 from Jason Merrill --- *** Bug 93295 has been marked as a duplicate of this bug. ***
[Bug c++/93085] ICE in get_class_binding_direct and alias_ctad_tweaks, with C++20 NTTP + CTAD + alias template
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93085 Jason Merrill changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org Status|WAITING |ASSIGNED CC||jason at gcc dot gnu.org --- Comment #5 from Jason Merrill --- The ICEs are fixed, I want to address the second testcase in comment #3.
[Bug c++/99675] [10/11 Regression] ICE during template deduction since r10-5020-g1a291106384cabc7
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99675 Jason Merrill changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |DUPLICATE --- Comment #3 from Jason Merrill --- Fixed already, probably by the patch for 95486. *** This bug has been marked as a duplicate of bug 95486 ***
[Bug c++/95486] ICE for alias CTAD with non-dependent argument and constrained constructor
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95486 Jason Merrill changed: What|Removed |Added CC||lnwirz at chem dot helsinki.fi --- Comment #8 from Jason Merrill --- *** Bug 99675 has been marked as a duplicate of this bug. ***
[Bug c++/98800] [8/9/10/11 Regression] ICE on invalid use of non-static member function in trailing return type since r8-2724
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98800 --- Comment #3 from Jason Merrill --- I'm getting a correct (if obscure) error message before the ICE: wa.C:4:71: error: use of ‘this’ in a constant expression 4 | template static auto func() -> enable_if_t()>; | ^ wa.C:4: confused by earlier errors, bailing out are you still not?
[Bug c++/97974] [9/10/11 Regression] ICE tree check: expected overload, have function_decl in get_class_binding_direct, at cp/name-lookup.c:1332
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97974 Jason Merrill changed: What|Removed |Added CC||jason at gcc dot gnu.org Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org
[Bug c++/100032] [8/9/10/11 Regression] renaming alias template that also adds cv-qualifiers is deemed equivalent to underlying template
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100032 Jason Merrill changed: What|Removed |Added Last reconfirmed||2021-04-12 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW --- Comment #2 from Jason Merrill --- (In reply to Patrick Palka from comment #1) > but this also makes us (incorrectly?) reject > > template class> struct X { }; > template struct Y { }; > template using Z = const Y; > template using W = Z; > using U = X; > using U = X; > > because the underlying type of W for some reason already has the const > qualifier Yes, because most alias templates are at least partly transparent, so W has the const added by Z. It should work to compare TYPE_QUALS to those of the underlying template, rather than to TYPE_UNQUALIFIED.
[Bug c++/97974] [9/10 Regression] ICE tree check: expected overload, have function_decl in get_class_binding_direct, at cp/name-lookup.c:1332
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97974 Jason Merrill changed: What|Removed |Added Known to work||11.0 Summary|[9/10/11 Regression] ICE|[9/10 Regression] ICE tree |tree check: expected|check: expected overload, |overload, have |have function_decl in |function_decl in|get_class_binding_direct, |get_class_binding_direct, |at cp/name-lookup.c:1332 |at cp/name-lookup.c:1332| --- Comment #3 from Jason Merrill --- Fixed for 11 so far.
[Bug c++/91933] [8/9/10/11 Regression] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in build_simple_base_path, at cp/class.c:541
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91933 Jason Merrill changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org Status|NEW |ASSIGNED
[Bug c++/91933] [8/9/10 Regression] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in build_simple_base_path, at cp/class.c:541
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91933 Jason Merrill changed: What|Removed |Added Known to work||11.0 Summary|[8/9/10/11 Regression] ICE: |[8/9/10 Regression] ICE: |tree check: expected class |tree check: expected class |'type', have 'exceptional' |'type', have 'exceptional' |(error_mark) in |(error_mark) in |build_simple_base_path, at |build_simple_base_path, at |cp/class.c:541 |cp/class.c:541 --- Comment #7 from Jason Merrill --- Fixed for 11 so far.
[Bug c++/100054] [11 Regression] internal compiler error: in get_nsdmi
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100054 Jason Merrill changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org
[Bug c++/100054] [11 Regression] internal compiler error: in get_nsdmi
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100054 Jason Merrill changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED|RESOLVED --- Comment #4 from Jason Merrill --- Fixed. Apparently 90479 is the wrong PR number for the earlier change, I wonder what the correct one was.
[Bug c++/100032] [8/9/10/11 Regression] renaming alias template that also adds cv-qualifiers is deemed equivalent to underlying template
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100032 Jason Merrill changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org Status|NEW |ASSIGNED
[Bug debug/88742] [8/9/10/11 Regression] Debugger jumps back when stepping over class destructor
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88742 Jason Merrill changed: What|Removed |Added CC||jason at gcc dot gnu.org Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org
[Bug debug/88742] [8/9/10 Regression] Debugger jumps back when stepping over class destructor
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88742 Jason Merrill changed: What|Removed |Added Summary|[8/9/10/11 Regression] |[8/9/10 Regression] |Debugger jumps back when|Debugger jumps back when |stepping over class |stepping over class |destructor |destructor Known to work||11.0 --- Comment #5 from Jason Merrill --- Fixed for GCC 11 so far.
[Bug debug/90674] [8/9/10/11 Regression] ICE in gen_subprogram_die
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90674 Jason Merrill changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org Status|NEW |ASSIGNED CC||jason at gcc dot gnu.org
[Bug c++/100032] [8/9/10 Regression] renaming alias template that also adds cv-qualifiers is deemed equivalent to underlying template
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100032 Jason Merrill changed: What|Removed |Added Summary|[8/9/10/11 Regression] |[8/9/10 Regression] |renaming alias template |renaming alias template |that also adds |that also adds |cv-qualifiers is deemed |cv-qualifiers is deemed |equivalent to underlying|equivalent to underlying |template|template Known to work||11.0 --- Comment #4 from Jason Merrill --- Fixed for GCC 11 so far.
[Bug debug/93951] [8/9/10/11 Regression] ICE with '-flto -g -femit-struct-debug-baseonly'
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93951 Jason Merrill changed: What|Removed |Added Status|NEW |WAITING --- Comment #11 from Jason Merrill --- I can't reproduce this. Can anyone else?
[Bug debug/90674] [8/9/10 Regression] ICE in gen_subprogram_die
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90674 Jason Merrill changed: What|Removed |Added Known to work||11.0 Summary|[8/9/10/11 Regression] ICE |[8/9/10 Regression] ICE in |in gen_subprogram_die |gen_subprogram_die --- Comment #6 from Jason Merrill --- Fixed for 11 so far.
[Bug c++/99478] [9/10/11 Regression] ICE when decltype lambda in template list
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99478 Jason Merrill changed: What|Removed |Added CC||jason at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org Status|NEW |ASSIGNED
[Bug c++/99478] [9/10 Regression] ICE when decltype lambda in template list
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99478 Jason Merrill changed: What|Removed |Added Summary|[9/10/11 Regression] ICE|[9/10 Regression] ICE when |when decltype lambda in |decltype lambda in template |template list |list --- Comment #3 from Jason Merrill --- Fixed for 11 so far.
[Bug c++/93314] [8/9/10 Regression] Invalid use of non-static data member causes ICE in gimplify_expr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93314 Jason Merrill changed: What|Removed |Added Summary|[8/9/10/11 Regression] |[8/9/10 Regression] Invalid |Invalid use of non-static |use of non-static data |data member causes ICE in |member causes ICE in |gimplify_expr |gimplify_expr Known to work||11.0 --- Comment #8 from Jason Merrill --- Fixed for 11 so far.
[Bug c++/93314] [8/9/10 Regression] Invalid use of non-static data member causes ICE in gimplify_expr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93314 --- Comment #9 from Jason Merrill --- Created attachment 50594 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50594&action=edit patch for stage 1 A more general, but also more risky, fix for next stage 1.
[Bug c++/100078] [11 Regression] Rejected code since r11-8137-g84081e2c6bd43a67
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100078 Jason Merrill changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org