public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/110084] New: defaulted constexpr operator== causes crash @ 2023-06-02 3:34 nikolasklauser at berlin dot de 2023-06-02 3:42 ` [Bug c++/110084] [12/13/14 Regression] " pinskia at gcc dot gnu.org ` (7 more replies) 0 siblings, 8 replies; 9+ messages in thread From: nikolasklauser at berlin dot de @ 2023-06-02 3:34 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110084 Bug ID: 110084 Summary: defaulted constexpr operator== causes crash Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: nikolasklauser at berlin dot de Target Milestone: --- template <class T> class BadTuple { constexpr bool operator==(const BadTuple&) const; }; template<class T> constexpr bool BadTuple<T>::operator==(const BadTuple<T>&) const = default; BadTuple<int> a; causes GCC to crash. https://godbolt.org/z/veG6hEeP3 ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/110084] [12/13/14 Regression] defaulted constexpr operator== causes crash 2023-06-02 3:34 [Bug c++/110084] New: defaulted constexpr operator== causes crash nikolasklauser at berlin dot de @ 2023-06-02 3:42 ` pinskia at gcc dot gnu.org 2023-06-05 20:29 ` mpolacek at gcc dot gnu.org ` (6 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: pinskia at gcc dot gnu.org @ 2023-06-02 3:42 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110084 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Keywords| |ice-on-valid-code Status|UNCONFIRMED |NEW Target Milestone|--- |12.4 Summary|defaulted constexpr |[12/13/14 Regression] |operator== causes crash |defaulted constexpr | |operator== causes crash Last reconfirmed| |2023-06-02 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed. I suspect r12-4202-g09d886e671f2230a caused the issue ... ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/110084] [12/13/14 Regression] defaulted constexpr operator== causes crash 2023-06-02 3:34 [Bug c++/110084] New: defaulted constexpr operator== causes crash nikolasklauser at berlin dot de 2023-06-02 3:42 ` [Bug c++/110084] [12/13/14 Regression] " pinskia at gcc dot gnu.org @ 2023-06-05 20:29 ` mpolacek at gcc dot gnu.org 2024-01-12 14:07 ` rguenth at gcc dot gnu.org ` (5 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: mpolacek at gcc dot gnu.org @ 2023-06-05 20:29 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110084 Marek Polacek <mpolacek at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mpolacek at gcc dot gnu.org --- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #1) > Confirmed. I suspect r12-4202-g09d886e671f2230a caused the issue ... Correct. ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/110084] [12/13/14 Regression] defaulted constexpr operator== causes crash 2023-06-02 3:34 [Bug c++/110084] New: defaulted constexpr operator== causes crash nikolasklauser at berlin dot de 2023-06-02 3:42 ` [Bug c++/110084] [12/13/14 Regression] " pinskia at gcc dot gnu.org 2023-06-05 20:29 ` mpolacek at gcc dot gnu.org @ 2024-01-12 14:07 ` rguenth at gcc dot gnu.org 2024-02-02 16:22 ` jason at gcc dot gnu.org ` (4 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: rguenth at gcc dot gnu.org @ 2024-01-12 14:07 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110084 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/110084] [12/13/14 Regression] defaulted constexpr operator== causes crash 2023-06-02 3:34 [Bug c++/110084] New: defaulted constexpr operator== causes crash nikolasklauser at berlin dot de ` (2 preceding siblings ...) 2024-01-12 14:07 ` rguenth at gcc dot gnu.org @ 2024-02-02 16:22 ` jason at gcc dot gnu.org 2024-02-02 18:55 ` cvs-commit at gcc dot gnu.org ` (3 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: jason at gcc dot gnu.org @ 2024-02-02 16:22 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110084 Jason Merrill <jason at gcc dot gnu.org> 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 ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/110084] [12/13/14 Regression] defaulted constexpr operator== causes crash 2023-06-02 3:34 [Bug c++/110084] New: defaulted constexpr operator== causes crash nikolasklauser at berlin dot de ` (3 preceding siblings ...) 2024-02-02 16:22 ` jason at gcc dot gnu.org @ 2024-02-02 18:55 ` cvs-commit at gcc dot gnu.org 2024-02-02 19:29 ` cvs-commit at gcc dot gnu.org ` (2 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: cvs-commit at gcc dot gnu.org @ 2024-02-02 18:55 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110084 --- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Jason Merrill <jason@gcc.gnu.org>: https://gcc.gnu.org/g:e17a122d417fc0d606bcb3a3705b93ee81745cab commit r14-8759-ge17a122d417fc0d606bcb3a3705b93ee81745cab Author: Jason Merrill <jason@redhat.com> Date: Fri Feb 2 12:04:11 2024 -0500 c++: op== defaulted outside class [PR110084] defaulted_late_check is for checks that need to happen after the class is complete; we shouldn't call it sooner. PR c++/110084 gcc/cp/ChangeLog: * pt.cc (tsubst_function_decl): Only check a function defaulted outside the class if the class is complete. gcc/testsuite/ChangeLog: * g++.dg/cpp2a/spaceship-synth-neg3.C: Check error message. * g++.dg/cpp2a/spaceship-eq16.C: New test. ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/110084] [12/13/14 Regression] defaulted constexpr operator== causes crash 2023-06-02 3:34 [Bug c++/110084] New: defaulted constexpr operator== causes crash nikolasklauser at berlin dot de ` (4 preceding siblings ...) 2024-02-02 18:55 ` cvs-commit at gcc dot gnu.org @ 2024-02-02 19:29 ` cvs-commit at gcc dot gnu.org 2024-02-02 19:54 ` cvs-commit at gcc dot gnu.org 2024-02-06 0:52 ` jason at gcc dot gnu.org 7 siblings, 0 replies; 9+ messages in thread From: cvs-commit at gcc dot gnu.org @ 2024-02-02 19:29 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110084 --- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-13 branch has been updated by Jason Merrill <jason@gcc.gnu.org>: https://gcc.gnu.org/g:3b5d906b2de6fd28dd3211119b70b014ab9784b5 commit r13-8273-g3b5d906b2de6fd28dd3211119b70b014ab9784b5 Author: Jason Merrill <jason@redhat.com> Date: Fri Feb 2 12:04:11 2024 -0500 c++: op== defaulted outside class [PR110084] defaulted_late_check is for checks that need to happen after the class is complete; we shouldn't call it sooner. PR c++/110084 gcc/cp/ChangeLog: * pt.cc (tsubst_function_decl): Only check a function defaulted outside the class if the class is complete. gcc/testsuite/ChangeLog: * g++.dg/cpp2a/spaceship-synth-neg3.C: Check error message. * g++.dg/cpp2a/spaceship-eq16.C: New test. (cherry picked from commit e17a122d417fc0d606bcb3a3705b93ee81745cab) ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/110084] [12/13/14 Regression] defaulted constexpr operator== causes crash 2023-06-02 3:34 [Bug c++/110084] New: defaulted constexpr operator== causes crash nikolasklauser at berlin dot de ` (5 preceding siblings ...) 2024-02-02 19:29 ` cvs-commit at gcc dot gnu.org @ 2024-02-02 19:54 ` cvs-commit at gcc dot gnu.org 2024-02-06 0:52 ` jason at gcc dot gnu.org 7 siblings, 0 replies; 9+ messages in thread From: cvs-commit at gcc dot gnu.org @ 2024-02-02 19:54 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110084 --- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-12 branch has been updated by Jason Merrill <jason@gcc.gnu.org>: https://gcc.gnu.org/g:28f95c81382243fc4e6f1b22741d258f5fd7541f commit r12-10129-g28f95c81382243fc4e6f1b22741d258f5fd7541f Author: Jason Merrill <jason@redhat.com> Date: Fri Feb 2 12:04:11 2024 -0500 c++: op== defaulted outside class [PR110084] defaulted_late_check is for checks that need to happen after the class is complete; we shouldn't call it sooner. PR c++/110084 gcc/cp/ChangeLog: * pt.cc (tsubst_function_decl): Only check a function defaulted outside the class if the class is complete. gcc/testsuite/ChangeLog: * g++.dg/cpp2a/spaceship-synth-neg3.C: Check error message. * g++.dg/cpp2a/spaceship-eq16.C: New test. (cherry picked from commit e17a122d417fc0d606bcb3a3705b93ee81745cab) ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/110084] [12/13/14 Regression] defaulted constexpr operator== causes crash 2023-06-02 3:34 [Bug c++/110084] New: defaulted constexpr operator== causes crash nikolasklauser at berlin dot de ` (6 preceding siblings ...) 2024-02-02 19:54 ` cvs-commit at gcc dot gnu.org @ 2024-02-06 0:52 ` jason at gcc dot gnu.org 7 siblings, 0 replies; 9+ messages in thread From: jason at gcc dot gnu.org @ 2024-02-06 0:52 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110084 Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> --- Fixed for 12.4/13.3/14. ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2024-02-06 0:52 UTC | newest] Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2023-06-02 3:34 [Bug c++/110084] New: defaulted constexpr operator== causes crash nikolasklauser at berlin dot de 2023-06-02 3:42 ` [Bug c++/110084] [12/13/14 Regression] " pinskia at gcc dot gnu.org 2023-06-05 20:29 ` mpolacek at gcc dot gnu.org 2024-01-12 14:07 ` rguenth at gcc dot gnu.org 2024-02-02 16:22 ` jason at gcc dot gnu.org 2024-02-02 18:55 ` cvs-commit at gcc dot gnu.org 2024-02-02 19:29 ` cvs-commit at gcc dot gnu.org 2024-02-02 19:54 ` cvs-commit at gcc dot gnu.org 2024-02-06 0:52 ` jason at gcc dot gnu.org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).