public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/29027] New: template conversion specialization found by using declaration
@ 2006-09-11 21:25 amylaar at gcc dot gnu dot org
2006-09-11 21:27 ` [Bug c++/29027] " pinskia at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: amylaar at gcc dot gnu dot org @ 2006-09-11 21:25 UTC (permalink / raw)
To: gcc-bugs
According to clauses 7.3.3 ; 4 and 14.5.2 ; 7, the using declaration below
should elicit a diagnostic, since template conversion function specializations
are not supposed to be found by name lookup.
struct B
{
template < class T > operator T ();
};
struct D: B
{
using B::operator int;
};
--
Summary: template conversion specialization found by using
declaration
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Keywords: accepts-invalid
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: amylaar at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29027
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/29027] template conversion specialization found by using declaration
2006-09-11 21:25 [Bug c++/29027] New: template conversion specialization found by using declaration amylaar at gcc dot gnu dot org
@ 2006-09-11 21:27 ` pinskia at gcc dot gnu dot org
2009-02-26 1:02 ` janis at gcc dot gnu dot org
2009-04-01 17:32 ` janis at gcc dot gnu dot org
2 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-09-11 21:27 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-09-11 21:27 -------
Confirmed, not a regression.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Known to fail| |2.95.3 3.0.4 4.0.0 4.1.0
| |3.4.0 3.2.3 3.3.3
Last reconfirmed|0000-00-00 00:00:00 |2006-09-11 21:27:27
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29027
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/29027] template conversion specialization found by using declaration
2006-09-11 21:25 [Bug c++/29027] New: template conversion specialization found by using declaration amylaar at gcc dot gnu dot org
2006-09-11 21:27 ` [Bug c++/29027] " pinskia at gcc dot gnu dot org
@ 2009-02-26 1:02 ` janis at gcc dot gnu dot org
2009-04-01 17:32 ` janis at gcc dot gnu dot org
2 siblings, 0 replies; 5+ messages in thread
From: janis at gcc dot gnu dot org @ 2009-02-26 1:02 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from janis at gcc dot gnu dot org 2009-02-26 01:02 -------
Subject: Bug 29027
Author: janis
Date: Thu Feb 26 01:02:22 2009
New Revision: 144443
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=144443
Log:
libcpp/
PR c/29027
* include/cpplib.h (CPP_N_DEFAULT): Define.
* expr.c (interpret_float_suffix): Recognize d or D for double,
return new value for default.
(cpp_classify_number): Issue pedwarn for use of d or D in suffix.
gcc/
PR c/29027
* c-lex.c (interpret_float): Default (no suffix) is double.
gcc/testsuite/
PR c/29027
* gcc.dg/fltconst-1.c: Don't error for use of d or D in suffix.
* gcc.dg/fltconst-2.c: New test.
* gcc.dg/fltconst-double-pedantic-1.c: New test.
* gcc.dg/fltconst-double-pedantic-2.c: New test.
Added:
branches/c-4_5-branch/gcc/testsuite/gcc.dg/fltconst-2.c
branches/c-4_5-branch/gcc/testsuite/gcc.dg/fltconst-double-pedantic-1.c
branches/c-4_5-branch/gcc/testsuite/gcc.dg/fltconst-double-pedantic-2.c
Modified:
branches/c-4_5-branch/gcc/ChangeLog.c45
branches/c-4_5-branch/gcc/c-lex.c
branches/c-4_5-branch/gcc/testsuite/ChangeLog.c45
branches/c-4_5-branch/gcc/testsuite/gcc.dg/fltconst-1.c
branches/c-4_5-branch/libcpp/ChangeLog.c45
branches/c-4_5-branch/libcpp/expr.c
branches/c-4_5-branch/libcpp/include/cpplib.h
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29027
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/29027] template conversion specialization found by using declaration
2006-09-11 21:25 [Bug c++/29027] New: template conversion specialization found by using declaration amylaar at gcc dot gnu dot org
2006-09-11 21:27 ` [Bug c++/29027] " pinskia at gcc dot gnu dot org
2009-02-26 1:02 ` janis at gcc dot gnu dot org
@ 2009-04-01 17:32 ` janis at gcc dot gnu dot org
2 siblings, 0 replies; 5+ messages in thread
From: janis at gcc dot gnu dot org @ 2009-04-01 17:32 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from janis at gcc dot gnu dot org 2009-04-01 17:31 -------
Subject: Bug 29027
Author: janis
Date: Wed Apr 1 17:31:26 2009
New Revision: 145422
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=145422
Log:
gcc/
PR c/29027
* c-lex.c (interpret_float): Default (no suffix) is double.
libcpp/
PR c/29027
* include/cpplib.h (CPP_N_DEFAULT): Define.
* expr.c (interpret_float_suffix): Recognize d or D for double,
return new value for default.
(cpp_classify_number): Issue pedwarn for use of d or D in suffix.
gcc/testsuite/
PR c/29027
* gcc.dg/fltconst-1.c: Don't error for use of d or D in suffix.
* gcc.dg/fltconst-2.c: New test.
* gcc.dg/fltconst-double-pedantic-1.c: New test.
* gcc.dg/fltconst-double-pedantic-2.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/fltconst-2.c
trunk/gcc/testsuite/gcc.dg/fltconst-double-pedantic-1.c
trunk/gcc/testsuite/gcc.dg/fltconst-double-pedantic-2.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-lex.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gcc.dg/fltconst-1.c
trunk/libcpp/ChangeLog
trunk/libcpp/expr.c
trunk/libcpp/include/cpplib.h
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29027
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/29027] template conversion specialization found by using declaration
[not found] <bug-29027-4@http.gcc.gnu.org/bugzilla/>
@ 2021-08-23 6:17 ` pinskia at gcc dot gnu.org
0 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-23 6:17 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=29027
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2018-06-21 00:00:00 |2021-8-22
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Interesting clang also has this bug.
(In reply to Jonathan Wakely from comment #5)
> [temp.mem] p7:
>
> A using-declaration in a derived class cannot refer to a specialization of a
> conversion function template in a base class.
I would have expected a Defect report if both GCC and clang accept this but
nope there is none.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-08-23 6:17 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-11 21:25 [Bug c++/29027] New: template conversion specialization found by using declaration amylaar at gcc dot gnu dot org
2006-09-11 21:27 ` [Bug c++/29027] " pinskia at gcc dot gnu dot org
2009-02-26 1:02 ` janis at gcc dot gnu dot org
2009-04-01 17:32 ` janis at gcc dot gnu dot org
[not found] <bug-29027-4@http.gcc.gnu.org/bugzilla/>
2021-08-23 6:17 ` 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).