[LLVMbugs] [Bug 20317] New: Segfault when variable template used from function template

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jul 15 20:10:23 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=20317

            Bug ID: 20317
           Summary: Segfault when variable template used from function
                    template
           Product: clang
           Version: 3.4
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++1y
          Assignee: unassignedclangbugs at nondot.org
          Reporter: rscrihf at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 12769
  --> http://llvm.org/bugs/attachment.cgi?id=12769&action=edit
backtrace, source, script

#include <cstdint>

template <class T, std::size_t n>
T array_[n] {};

template <class T, std::size_t n>
constexpr T array_function(std::size_t i)
{
  return array_<T, n>[i];
}

int main()
{
  auto get_int = array_function<int, 10>;
}

Backtrace is attached.

-- 
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/20140716/3fc50e31/attachment.html>


More information about the llvm-bugs mailing list