[cfe-dev] Question regarding error
John Thompson
john.thompson.jtsoftware at gmail.com
Fri Apr 30 16:55:09 PDT 2010
This doesn't compile. Should it?:
class test
{
public:
test( float x );
test(__attribute__((vector_size(16))) float v );
};
int vi = 0;
void func()
{
test object = test(vi);
}
C:\Sony\Clang\exp>clang -cc1 scalar.cpp
scalar.cpp:13:16: error: functional-style cast from 'int' to 'test' is not
allowed
test object = test(vi);
^~~~
--
John Thompson
John.Thompson.JTSoftware at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100430/fb70b981/attachment.html>
More information about the cfe-dev
mailing list