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

           Summary: catch reference to incomplete type
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


clang and comeau can't compile this code, but gcc and msvc can.

struct T;

template <typename U>
void f()
{
   try
   {}
   catch(T const &)
   {}
}

struct T
{};

int main()
{
   f<int>();
   return 0;
}

I don't know is this error of clang or boost. So I report the bug to boost too:
https://svn.boost.org/trac/boost/ticket/3983

In any case compatibility with gcc is useful.

-- 
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