public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "dave at boostpro dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/55206] New: GCC Reports Ambiguity; clang and comeau disagree
Date: Sun, 04 Nov 2012 13:57:00 -0000	[thread overview]
Message-ID: <bug-55206-4@http.gcc.gnu.org/bugzilla/> (raw)


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

             Bug #: 55206
           Summary: GCC Reports Ambiguity; clang and comeau disagree
    Classification: Unclassified
           Product: gcc
           Version: 4.7.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: dave@boostpro.com


I apologize for not doing the hunt to figure out what the standard says on this
one, but since GCC is the outlier I'm reporting it here.  The error is:

g++ -I ~/src/boost/svn/release  -Wall -Wextra -pedantic -Wno-long-long
-Wno-unused-parameter -Wno-unused -Wno-parentheses -D_GLIBCXX_DEBUG -g -O0
shared.cpp -o shared
In file included from
/Users/dave/src/boost/svn/release/boost/make_shared.hpp:15:0,
                 from shared.cpp:24:
/Users/dave/src/boost/svn/release/boost/smart_ptr/make_shared.hpp: In
instantiation of 'boost::shared_ptr<T> boost::make_shared(const A1&) [with T =
json_store<json_string>; A1 = boost::rv<json_string>]':
shared.cpp:261:65:   required from 'static json_value::stored_type
json_value::make_storage(T&, boost::false_type, boost::false_type) [with T =
json_string; json_value::stored_type = boost::shared_ptr<json_base>;
boost::false_type = boost::integral_constant<bool, false>]'
shared.cpp:176:9:   required from 'json_value::json_value(T) [with T =
json_string]'
shared.cpp:300:41:   required from here
/Users/dave/src/boost/svn/release/boost/smart_ptr/make_shared.hpp:660:5: error:
call of overloaded 'json_string(const boost::rv<json_string>&)' is ambiguous
/Users/dave/src/boost/svn/release/boost/smart_ptr/make_shared.hpp:660:5: note:
candidates are:
shared.cpp:65:5: note: json_string::json_string(const json_string&)
shared.cpp:61:5: note: json_string::json_string(json_string::rep_t)
shared.cpp:145:5: error:   initializing argument 1 of
'json_store<T>::json_store(T) [with T = json_string]'
make: *** [shared] Error 1

Compilation exited abnormally with code 2 at Sun Nov  4 08:45:44


             reply	other threads:[~2012-11-04 13:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-04 13:57 dave at boostpro dot com [this message]
2012-11-04 15:31 ` [Bug c++/55206] " paolo.carlini at oracle dot com
2012-11-04 16:47 ` dave at boostpro dot com
2012-11-04 16:48 ` dave at boostpro dot com
2013-05-05 11:58 ` paolo.carlini at oracle dot com
2015-03-25 17:25 ` paolo.carlini at oracle dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-55206-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).