public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/21682] New: Disallowed using declaration @ 2005-05-20 17:13 dave at boost-consulting dot com 2005-05-20 17:14 ` [Bug c++/21682] " dave at boost-consulting dot com 2005-05-21 14:35 ` pinskia at gcc dot gnu dot org 0 siblings, 2 replies; 3+ messages in thread From: dave at boost-consulting dot com @ 2005-05-20 17:13 UTC (permalink / raw) To: gcc-bugs GCC reports ../../../../boost/sequence/begin.hpp:53: error: 'begin' is already declared in this scope When creating an overload set by bringing a function into a namespace via using-declaration. Compile the enclosed source to demonstrate. -- Summary: Disallowed using declaration Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dave at boost-consulting dot com CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21682 ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/21682] Disallowed using declaration 2005-05-20 17:13 [Bug c++/21682] New: Disallowed using declaration dave at boost-consulting dot com @ 2005-05-20 17:14 ` dave at boost-consulting dot com 2005-05-21 14:35 ` pinskia at gcc dot gnu dot org 1 sibling, 0 replies; 3+ messages in thread From: dave at boost-consulting dot com @ 2005-05-20 17:14 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From dave at boost-consulting dot com 2005-05-20 17:13 ------- Created an attachment (id=8939) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8939&action=view) preprocessed source -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21682 ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/21682] Disallowed using declaration 2005-05-20 17:13 [Bug c++/21682] New: Disallowed using declaration dave at boost-consulting dot com 2005-05-20 17:14 ` [Bug c++/21682] " dave at boost-consulting dot com @ 2005-05-21 14:35 ` pinskia at gcc dot gnu dot org 1 sibling, 0 replies; 3+ messages in thread From: pinskia at gcc dot gnu dot org @ 2005-05-21 14:35 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-21 14:35 ------- Confirmed, reduced testcase (which shows the problem): template <class T> struct t { typedef typename T::type type; }; template<> class t<int>{}; template <class T> struct t1{ }; template<> struct t1<int> { typedef int type; }; namespace name1 { template <class S> typename t<S>::type begin(S const& s); namespace name2 { template <class S> typename t1<S>::type begin(S const& s); } using name2::begin; } /* Test calling the function. */ int f(int a) { return name1::begin(a); } struct aa { typedef double type; }; double g(aa t) { return name1::begin(t); } -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed| |1 Keywords| |rejects-valid Last reconfirmed|0000-00-00 00:00:00 |2005-05-21 14:35:40 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21682 ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-05-21 14:35 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2005-05-20 17:13 [Bug c++/21682] New: Disallowed using declaration dave at boost-consulting dot com 2005-05-20 17:14 ` [Bug c++/21682] " dave at boost-consulting dot com 2005-05-21 14:35 ` pinskia at gcc dot gnu dot 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).