public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/104615] New: [Concepts] ICE in explicit instantiation when multiple candidates are valid (CWG2421)
@ 2022-02-21 17:35 roi.jacobson1 at gmail dot com
2022-03-07 1:43 ` [Bug c++/104615] " pinskia at gcc dot gnu.org
2023-03-08 21:07 ` pinskia at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: roi.jacobson1 at gmail dot com @ 2022-02-21 17:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104615
Bug ID: 104615
Summary: [Concepts] ICE in explicit instantiation when multiple
candidates are valid (CWG2421)
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: roi.jacobson1 at gmail dot com
Target Milestone: ---
#include <concepts>
template<class T>
struct B {
int f() requires (!std::same_as<T, char>) {
return 0;
}
int f() requires (!std::same_as<T, char> && !std::same_as<T, float>) {
return 1;
}
};
template struct B<int>;
This crashes GCC with "<source>:12:23: error: Two symbols with same
comdat_group are not linked by the same_comdat_group list." as both functions
are compiled and have the same mangling.
Also, CWG2421 is still open about what the actual behavior should be in this
case.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/104615] [Concepts] ICE in explicit instantiation when multiple candidates are valid (CWG2421)
2022-02-21 17:35 [Bug c++/104615] New: [Concepts] ICE in explicit instantiation when multiple candidates are valid (CWG2421) roi.jacobson1 at gmail dot com
@ 2022-03-07 1:43 ` pinskia at gcc dot gnu.org
2023-03-08 21:07 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-03-07 1:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104615
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=68608
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
Last reconfirmed| |2022-03-07
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/104615] [Concepts] ICE in explicit instantiation when multiple candidates are valid (CWG2421)
2022-02-21 17:35 [Bug c++/104615] New: [Concepts] ICE in explicit instantiation when multiple candidates are valid (CWG2421) roi.jacobson1 at gmail dot com
2022-03-07 1:43 ` [Bug c++/104615] " pinskia at gcc dot gnu.org
@ 2023-03-08 21:07 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-03-08 21:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104615
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup of bug 68608.
*** This bug has been marked as a duplicate of bug 68608 ***
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-03-08 21:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-21 17:35 [Bug c++/104615] New: [Concepts] ICE in explicit instantiation when multiple candidates are valid (CWG2421) roi.jacobson1 at gmail dot com
2022-03-07 1:43 ` [Bug c++/104615] " pinskia at gcc dot gnu.org
2023-03-08 21:07 ` pinskia 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).