The error message:

h.cc: In function `int f()':
h.cc:17: error: no matching function for call to 'g(F<int>&)'

does not help fixing this (buggy) code:

template <class T>
struct Q
{
    typedef int t;
};

template <> class Q<int>;

template <class T> class F {};

template <class T>
F< typename Q<T>::t> g( const F<T>& a );

int f()
{
    F<int> a;
    g(a );
}

-- 
           Summary: bad error message
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: kunert at physik dot tu-dresden dot de
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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

Reply via email to