https://llvm.org/bugs/show_bug.cgi?id=30477

            Bug ID: 30477
           Summary: missing attribute warnings on non-type-template-params
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangb...@nondot.org
          Reporter: nlewy...@google.com
                CC: llvm-bugs@lists.llvm.org
    Classification: Unclassified

Example:

  template <int __attribute__((interrupt)) I> void f();

While debugging something else I noticed that we never enter
ProcessDeclAttribute on this TU, and we fail to issue the warning that
interrupt only applies to functions. Here's another example:

  template <int __attribute__((tls_model)) I> void f();
  int __attribute__((tls_model)) i;

x.cc:2:20: error: 'tls_model' attribute takes one argument
int __attribute__((tls_model)) i;
                   ^
1 error generated.

The template<> line should generate the same warning.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to