Displaying 4 results from an estimated 4 matches for "karthikvenkatesh".
2012 Oct 24
0
[LLVMdev] Clang fails to compile template with dependendent Non type template parameter.
...>
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 template
> X::dim> Y::f() { return X(); }
>
&g...
2012 Nov 16
1
[LLVMdev] Failure while calling a function in GDB session
Hi All,
I compiled the following code on my linux PC using clang with PIE option-
struct struct4 {char a; char b; char c; char d; };
struct struct4 foo4 = {'a','2','c','4'};
struct struct4 fun4()
{
return foo4;
}
int main()
{
fun4();
return 0;
}
> clang -g -fPIE structs.c
In GDB session when i call p/c fun4() i get something like below-
(gdb) p/c
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>();
2012 Dec 17
0
[LLVMdev] Query Regarding instruction ordering of passive nodes
Hi All,
I'm trying to compile the attached code(gdb11531.c) with latest clang with -O0 on ARM.
Clang seems to be reordering the instructions in case of constant nodes(for ARM) even when O0 is specified resulting in few wrong information when debugging through GDB.
I had few queries,would be great if someone could clarify the same -
In the given assembly code, the instructions where constant