search for: r166496

Displaying 2 results from an estimated 2 matches for "r166496".

Did you mean: 166496
2012 Oct 24
0
[LLVMdev] Clang fails to compile template with dependendent Non type template parameter.
...: Richard Smith<richard at metafoo.co.uk> Date : Oct 24, 2012 05:01 (GMT+09:00) Title : Re: [LLVMdev] Clang fails to compile template with dependendent Non type template parameter. Questions about Clang should be directed to cfe-dev at cs.uiuc.edu, not to llvmdev at . This issue is fixed in r166496. On Tue, Oct 23, 2012 at 1:33 AM, KARTHIKVENKATESH BHAT wrote: > Hi All, > I'm trying to compile the following code on clang- > > template class X {}; > template struct Y { > static const unsigned int dim = 1 ; > template X::dim> f(); > }; > > template temp...
2012 Oct 23
1
[LLVMdev] Clang fails to compile template with dependendent Non type template parameter.
Hi All, I'm trying to compile the following code on clang- template <int dim> class X {}; template <class T> struct Y { static const unsigned int dim = 1 ; template <class U> X<Y<T>::dim> f(); }; template <class T> template <class U> X<Y<T>::dim> Y<T>::f() { return X<dim>(); } int main() { Y<int>().f<int>();