public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/66108] New: cv-qualification deducation failure on conversion operator
@ 2015-05-11 16:33 barry.revzin at gmail dot com
2015-05-11 16:34 ` [Bug c++/66108] " barry.revzin at gmail dot com
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: barry.revzin at gmail dot com @ 2015-05-11 16:33 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66108
Bug ID: 66108
Summary: cv-qualification deducation failure on conversion
operator
Product: gcc
Version: 5.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: barry.revzin at gmail dot com
Target Milestone: ---
Consider this code (taken from SO question)
#include <iostream>
struct A {
template <class T> operator T***()
{
static_assert(std::is_same<T, int>::value, "oops");
}
};
int main(){
A a;
const int * const * const * p1 = a;
}
This is exactly the example taken from the standard in [temp.deduct.conv]/7,
yet on gcc 5.1, the static assertion fails because T is deduced as const int
rather than int.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/66108] cv-qualification deducation failure on conversion operator
2015-05-11 16:33 [Bug c++/66108] New: cv-qualification deducation failure on conversion operator barry.revzin at gmail dot com
@ 2015-05-11 16:34 ` barry.revzin at gmail dot com
2021-08-09 23:14 ` [Bug c++/66108] incorrect cv-qualification deduction on conversion operator template pinskia at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: barry.revzin at gmail dot com @ 2015-05-11 16:34 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66108
--- Comment #1 from Barry Revzin <barry.revzin at gmail dot com> ---
Forgot to add link:
http://stackoverflow.com/questions/30172533/template-argument-type-deduction-by-conversion-operator
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/66108] incorrect cv-qualification deduction on conversion operator template
2015-05-11 16:33 [Bug c++/66108] New: cv-qualification deducation failure on conversion operator barry.revzin at gmail dot com
2015-05-11 16:34 ` [Bug c++/66108] " barry.revzin at gmail dot com
@ 2021-08-09 23:14 ` pinskia at gcc dot gnu.org
2024-03-13 0:26 ` pinskia at gcc dot gnu.org
2024-03-13 0:29 ` [Bug c++/66108] [CWG 349] " pinskia at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-09 23:14 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66108
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
GCC, clang, ICC and MSVC all produce cause the static_assert to happen.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/66108] incorrect cv-qualification deduction on conversion operator template
2015-05-11 16:33 [Bug c++/66108] New: cv-qualification deducation failure on conversion operator barry.revzin at gmail dot com
2015-05-11 16:34 ` [Bug c++/66108] " barry.revzin at gmail dot com
2021-08-09 23:14 ` [Bug c++/66108] incorrect cv-qualification deduction on conversion operator template pinskia at gcc dot gnu.org
@ 2024-03-13 0:26 ` pinskia at gcc dot gnu.org
2024-03-13 0:29 ` [Bug c++/66108] [CWG 349] " pinskia at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-03-13 0:26 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66108
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
https://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#349
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/66108] [CWG 349] incorrect cv-qualification deduction on conversion operator template
2015-05-11 16:33 [Bug c++/66108] New: cv-qualification deducation failure on conversion operator barry.revzin at gmail dot com
` (2 preceding siblings ...)
2024-03-13 0:26 ` pinskia at gcc dot gnu.org
@ 2024-03-13 0:29 ` pinskia at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-03-13 0:29 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66108
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Blocks| |94404
Status|UNCONFIRMED |NEW
Alias| |cwg349
Summary|incorrect cv-qualification |[CWG 349] incorrect
|deduction on conversion |cv-qualification deduction
|operator template |on conversion operator
| |template
Last reconfirmed| |2024-03-13
Ever confirmed|0 |1
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94404
[Bug 94404] [meta-bug] C++ core issues
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-03-13 0:29 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-11 16:33 [Bug c++/66108] New: cv-qualification deducation failure on conversion operator barry.revzin at gmail dot com
2015-05-11 16:34 ` [Bug c++/66108] " barry.revzin at gmail dot com
2021-08-09 23:14 ` [Bug c++/66108] incorrect cv-qualification deduction on conversion operator template pinskia at gcc dot gnu.org
2024-03-13 0:26 ` pinskia at gcc dot gnu.org
2024-03-13 0:29 ` [Bug c++/66108] [CWG 349] " 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).