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
    Classification: Unclassified


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

Reply via email to