[llvm-bugs] [Bug 36647] New: Crash compiling template code with using-aliasing

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Mar 8 03:50:19 PST 2018


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

            Bug ID: 36647
           Summary: Crash compiling template code with using-aliasing
           Product: clang
           Version: 5.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: jacob.a.lundgren at gmail.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 20023
  --> https://bugs.llvm.org/attachment.cgi?id=20023&action=edit
Backtrace, reproducing preprocessed source and compilation script

Crash attempting to compile a piece of valid C++ code containing a template
struct with a nested template struct. A using-statement is used for the outer
template when explicitly specializing the inner template for a specific
specialization of the outer template. Of note is that replacing the
using-statement with an equivalent typedef means that compilation succeeds.

Steps to reproduce:
1. Compile the attached preprocessed source using the attached command

Actual results:
clang++ crashes

Expected results:
Compilation proceeds and succeeds

Hardware:
Arch Linux 4.15.7-1-ARCH

-- 
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/20180308/725a9f96/attachment.html>


More information about the llvm-bugs mailing list