Re: should the inline keyword prevent code compilation with no optimization?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Rohit Garg <rpg.314@xxxxxxxxx> writes:

> I have a small c++ test class. Many of the functions are declared
> inline and are declared and defined inside the class definition
> itself. The code refuses to compile without optimization, but compiles
> and executes correctly with -O{s,1,2,3}.
>
> Is this expected?

No.

I can't recreate your problem--your test case compiles when I try it.

> vector8s.cpp:13: error: no matching function for call to
> ‘vector8s::first4(long long int __vector__*)’
> vector8s.h:100: note: candidates are: void vector8s::first4(int*) const

Clearly there is some confusion somewhere between __m128i* and int*, but
I don't know what could cause that.

Ian


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux