[llvm-bugs] [Bug 35328] New: segfault parsing invalid template struct specialisation

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Nov 16 04:31:02 PST 2017


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

            Bug ID: 35328
           Summary: segfault parsing invalid template struct
                    specialisation
           Product: clang
           Version: 5.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: danny at nerdcruft.net
                CC: llvm-bugs at lists.llvm.org

Created attachment 19430
  --> https://bugs.llvm.org/attachment.cgi?id=19430&action=edit
terminal output from failed invocation

clang-5.0.0 will segfault when compiling the following four line template
struct specialisation fragment via `clang++ test.cpp`:

// start
template <>  
template < typename a >
struct b<> : a  
  b () {
// end

The code fragment was produced via creduce from an actual segfault in a larger
codebase. Optimisation level does not appear to be important. Syntax errors are
correctly reported prior to the backtrace.

I'm attaching runscripts, processed sources, and logs. Let me know if there's
anything further I can add.

-- 
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/20171116/ec33420b/attachment.html>


More information about the llvm-bugs mailing list