http://llvm.org/bugs/show_bug.cgi?id=13166

             Bug #: 13166
           Summary: Out-of-line definition does not match any declaration
                    error message could be improved
           Product: clang
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified


It would be nice if the Clang could produce a better error message for the
following code:

  struct Test {
    typedef int T;

    template <typename T>
    void test(T value);
  };

  template <typename T>
  void Test::test(T value) {}

Currently the error message only reads 

  test.cpp:10:12: error: out-of-line definition of 'test' does not match any
declaration in 'Test'
  void Test::test(T value) {}
             ^~~~
  1 error generated.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to