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: unassignedclangb...@nondot.org
          Reporter: da...@nerdcruft.net
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to