[LLVMbugs] [Bug 21096] New: crashes during template type deduction
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Sep 29 15:17:15 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=21096
Bug ID: 21096
Summary: crashes during template type deduction
Product: clang
Version: trunk
Hardware: PC
OS: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: unassignedclangbugs at nondot.org
Reporter: ryan.burn at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
crashes during template argument deduction. Attached original c++ file (uses
Facebook fatal library), as well as generate files.
The code gives this error when compiling with g++:
main.cpp: In function 'int main()':
main.cpp:106:79: error: no matching function for call to
'slice(fatal::constant_sequence<int, 1, 2, 3, 4, 5>)'
main.cpp:106:79: note: candidate is:
main.cpp:84:3: note: template<int I, int J, class T, T ...Values> constexpr
decltype (to_constant_sequence(typename fatal::constant_sequence<T, Values
...>::list:: slice<I, J>)) slice(fatal::constant_sequence<T, Values ...>)
main.cpp:84:3: note: template argument deduction/substitution failed:
main.cpp: In substitution of 'template<int I, int J, class T, T ...Values>
constexpr decltype (to_constant_sequence(typename fatal::constant_sequence<T,
Values ...>::list:: slice<I, J>)) slice(fatal::constant_sequence<T, Values
...>) [with int I = 1; int J = 3; T = int; T ...Values = {1, 2, 3, 4, 5}]':
main.cpp:106:79: required from here
main.cpp:84:3: error: dependent-name 'typename fatal::constant_sequence<T,
Values ...>::list:: slice<I, J>' is parsed as a non-type, but instantiation
yields a type
main.cpp:84:3: note: say 'typename typename fatal::constant_sequence<T, Values
...>::list:: slice<I, J>' if a type is meant
--
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/20140929/14c6642c/attachment.html>
More information about the llvm-bugs
mailing list