[llvm-bugs] [Bug 26281] New: Error: too few template arguments for class template (GSL/PCH)

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Jan 24 11:43:07 PST 2016


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

            Bug ID: 26281
           Summary: Error: too few template arguments for class template
                    (GSL/PCH)
           Product: clang
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: peetlugen19 at yandex.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

I am getting this error on the GSL (Guidelines Support Library) when producing
pch of the file span.h and then including it into any file.

I reduced the file into this example:

foo.h
----
namespace global {
  class U {};

  template <typename T, typename S = U, int... P>
  class MyClass;

  template <typename T, typename S, int... P>
  class MyClass {
  };
}

bar.h
----
namespace global {
  class W {};

  template <typename T = MyClass<W>>
  class InstClass {};
}

clang -cc1 -std=c++14 -x c++-header foo.h -emit-pch -o foo.h.pch
clang -cc1 -std=c++14 -x c++-header -fsyntax-only -include-pch foo.h.pch bar.h

This bug might be related to this bug (Wasn't sure because this is triggered by
using precompiled headers):
https://llvm.org/bugs/show_bug.cgi?id=10147

-- 
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/20160124/6a4e1d3d/attachment.html>


More information about the llvm-bugs mailing list