public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/52180] New: [DR 1227] [C++11] need to remember whether a return type was specified early or late
@ 2012-02-09 4:01 jason at gcc dot gnu.org
2014-06-11 10:46 ` [Bug c++/52180] " paolo.carlini at oracle dot com
0 siblings, 1 reply; 2+ messages in thread
From: jason at gcc dot gnu.org @ 2012-02-09 4:01 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52180
Bug #: 52180
Summary: [DR 1227] [C++11] need to remember whether a return
type was specified early or late
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Keywords: rejects-valid
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: jason@gcc.gnu.org
template <class T> struct A { using X = typename T::X; };
template <class T> typename T::X f(typename A<T>::X);
template <class T> void f(...) {}
template <class T> auto g(typename A<T>::X) -> typename T::X;
template <class T> void g(...) {}
void h()
{
f<int>(0); // OK, substituting return type causes deduction to fail
g<int>(0); // error, substituting parameter type instantiates A<int>
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/52180] [DR 1227] [C++11] need to remember whether a return type was specified early or late
2012-02-09 4:01 [Bug c++/52180] New: [DR 1227] [C++11] need to remember whether a return type was specified early or late jason at gcc dot gnu.org
@ 2014-06-11 10:46 ` paolo.carlini at oracle dot com
0 siblings, 0 replies; 2+ messages in thread
From: paolo.carlini at oracle dot com @ 2014-06-11 10:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52180
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
Target Milestone|--- |4.10.0
--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> ---
We took care of this:
2014-05-31 Paolo Carlini <paolo.carlini@oracle.com>
DR 1227
PR c++/57543
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-06-11 10:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-09 4:01 [Bug c++/52180] New: [DR 1227] [C++11] need to remember whether a return type was specified early or late jason at gcc dot gnu.org
2014-06-11 10:46 ` [Bug c++/52180] " paolo.carlini at oracle dot com
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).