public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/46394] New: [C++0X] no matching function with default template argument
@ 2010-11-09 14:41 marc.glisse at normalesup dot org
  2010-11-09 14:58 ` [Bug c++/46394] [C++0X] [4.6 Regression] no matching function with default template parameter paolo.carlini at oracle dot com
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: marc.glisse at normalesup dot org @ 2010-11-09 14:41 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [C++0X] no matching function with default template
                    argument
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: marc.glisse@normalesup.org


This code recently stopped compiling. (I have a remove_cv on top of the
remove_reference in the original code but it didn't look necessary to reproduce
the problem)

#include <utility>
#include <tuple>
#include <type_traits>
struct A {
        template<class...U,class=
                typename std::enable_if<
                !std::is_same<
                std::tuple<typename std::remove_reference<U>::type...>,
                std::tuple<A>
                        >::value
                        >::type
                        >
                        A(U&&...u) ;
};
int main(){
        A a(1,2,3);
}


bug.cc: In function ‘int main()’:
bug.cc:16:11: error: no matching function for call to ‘A::A(int, int, int)’
bug.cc:13:13: note: candidates are: template<class ... U, class> A::A(U&& ...)
bug.cc:4:8: note:                 constexpr A::A(const A&)
bug.cc:4:8: note:                 constexpr A::A(A&&)


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

end of thread, other threads:[~2011-02-20 18:09 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-09 14:41 [Bug c++/46394] New: [C++0X] no matching function with default template argument marc.glisse at normalesup dot org
2010-11-09 14:58 ` [Bug c++/46394] [C++0X] [4.6 Regression] no matching function with default template parameter paolo.carlini at oracle dot com
2010-11-09 15:06 ` paolo.carlini at oracle dot com
2010-12-17 20:04 ` marc.glisse at normalesup dot org
2010-12-17 20:10 ` hjl.tools at gmail dot com
2011-01-03 20:20 ` dodji at gcc dot gnu.org
2011-01-04 15:33 ` dodji at gcc dot gnu.org
2011-02-04 19:53 ` dodji at gcc dot gnu.org
2011-02-08 13:45 ` rguenth at gcc dot gnu.org
2011-02-20 17:42 ` dodji at gcc dot gnu.org
2011-02-20 18:09 ` dodji at gcc dot gnu.org
2011-02-20 18:10 ` dodji 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).