search for: rebuildtypeincurrentinstantiation

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

2012 Oct 23
1
[LLVMdev] Clang fails to compile template with dependendent Non type template parameter.
...gging I found that while parsing declaration " template <class U> X<Y<T>::dim> f();" qualtype of expression Y<T>::dim is treated as "const unsigned int" . But during definition of Non type parameter Y<T>::dim is treated as a dependent type and hence RebuildTypeInCurrentInstantiation is called but Y<T>::dim is still not resolved to "const unsigned int" after call to RebuildTypeInCurrentInstantiation. I'm a bit new to parser code of clang. My doubt were- 1) Ideally shouldn't RebuildTypeInCurrentInstantiation resolve qualtype of expression Y<T>::dim...
2012 Oct 24
0
[LLVMdev] Clang fails to compile template with dependendent Non type template parameter.
...() { return X(); } > > Upon debugging I found that while parsing declaration " template X::dim> f();" > qualtype of expression Y::dim is treated as "const unsigned int" . > But during definition of Non type parameter Y::dim is treated as a dependent type and hence RebuildTypeInCurrentInstantiation > is called but Y::dim is still not resolved to "const unsigned int" after call to RebuildTypeInCurrentInstantiation. > > I'm a bit new to parser code of clang. My doubt were- > 1) Ideally shouldn't RebuildTypeInCurrentInstantiation resolve qualtype of expression Y::di...