[LLVMbugs] [Bug 17657] New: bogus error with non-type template argument

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Oct 22 13:38:29 PDT 2013


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

            Bug ID: 17657
           Summary: bogus error with non-type template argument
           Product: clang
           Version: 3.3
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: rmccj at acentri.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

The compiler complains with "error: non-type template argument is not a pointer
to member constant" for the last line of the following code.

struct a
{
    union {int i;};
};

template <int (a::*)> struct b;

typedef b<&a::i> c;

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131022/51b01c2a/attachment.html>


More information about the llvm-bugs mailing list