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

            Bug ID: 15736
           Summary: variable with constant initializer is dependent
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified

Variable with constant initializer is considered dependent currently. That is
why clang do not print error on the following code:

template <int N>
struct x
{
    static const int M = 10;

    typedef typename x<M>::asdf mytype2;
};

GCC understand that M is not dependent and print error message:

12.cpp:6:28: error: 'asdf' in 'struct x<10>' does not name a type

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