public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/57942] g++-4.8.1 tries to instantiate wrong constructor (C++11)
       [not found] <bug-57942-4@http.gcc.gnu.org/bugzilla/>
@ 2013-07-20 22:14 ` richard-gccbugzilla at metafoo dot co.uk
  2013-07-22 23:38 ` paolo.carlini at oracle dot com
  2013-07-24  8:38 ` [Bug c++/57942] g++-4.8.1 tries to instantiate wrong constructor paolo.carlini at oracle dot com
  2 siblings, 0 replies; 3+ messages in thread
From: richard-gccbugzilla at metafoo dot co.uk @ 2013-07-20 22:14 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57942

Richard Smith <richard-gccbugzilla at metafoo dot co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |richard-gccbugzilla@metafoo
                   |                            |.co.uk

--- Comment #1 from Richard Smith <richard-gccbugzilla at metafoo dot co.uk> ---
Reduced to:

template<typename T> struct S { typename T::error type; };
struct X {};
void f(S<int> *);
void f(...);
void g() { f((X*)0); }

It looks like, when considering a conversion from A* to B*, where A is a class
type, gcc attempts to complete B. There seems to be no obvious justification
for this (it doesn't help in determining whether B is a base class of A, which
seems like the most likely explanation for this behavior).


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/57942] g++-4.8.1 tries to instantiate wrong constructor (C++11)
       [not found] <bug-57942-4@http.gcc.gnu.org/bugzilla/>
  2013-07-20 22:14 ` [Bug c++/57942] g++-4.8.1 tries to instantiate wrong constructor (C++11) richard-gccbugzilla at metafoo dot co.uk
@ 2013-07-22 23:38 ` paolo.carlini at oracle dot com
  2013-07-24  8:38 ` [Bug c++/57942] g++-4.8.1 tries to instantiate wrong constructor paolo.carlini at oracle dot com
  2 siblings, 0 replies; 3+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-07-22 23:38 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57942

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2013-07-22
           Assignee|unassigned at gcc dot gnu.org      |paolo.carlini at oracle dot com
   Target Milestone|---                         |4.9.0
     Ever confirmed|0                           |1

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Thanks for the analysis. Mine.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/57942] g++-4.8.1 tries to instantiate wrong constructor
       [not found] <bug-57942-4@http.gcc.gnu.org/bugzilla/>
  2013-07-20 22:14 ` [Bug c++/57942] g++-4.8.1 tries to instantiate wrong constructor (C++11) richard-gccbugzilla at metafoo dot co.uk
  2013-07-22 23:38 ` paolo.carlini at oracle dot com
@ 2013-07-24  8:38 ` paolo.carlini at oracle dot com
  2 siblings, 0 replies; 3+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-07-24  8:38 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57942

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Fixed for 4.9.0.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-07-24  8:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-57942-4@http.gcc.gnu.org/bugzilla/>
2013-07-20 22:14 ` [Bug c++/57942] g++-4.8.1 tries to instantiate wrong constructor (C++11) richard-gccbugzilla at metafoo dot co.uk
2013-07-22 23:38 ` paolo.carlini at oracle dot com
2013-07-24  8:38 ` [Bug c++/57942] g++-4.8.1 tries to instantiate wrong constructor 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).