Diagnostic 77: this declaration has no storage class or type specifier

Diagnostic 77: this declaration has no storage class or type specifier

Thank you for your interest in this diagnostic message. We are still in the process of documenting this specific diagnostic.

Please let us know of your experience with this diagnostic message by posting a comment below. Your interest in this diagnostic will help us prioritize the order we document diagnostics.

For more complete information about compiler optimizations, see our Optimization Notice.

5 comments

Top
Rich F.'s picture

A hint from Thiago Macieira in  QTBUG-36795 helped solved this.

In Compiler.h change

#if COMPILER(INTEL) && !(defined(WIN32) || defined(_WIN32)) || COMPILER(RVCT)
to
#if COMPILER(RVCT)

In Assertions.h change the two instances of

#if COMPILER(INTEL) && !OS(WINDOWS) || COMPILER(RVCT)
to
#if COMPILER(RVCT)

That will get you past this issue to this one

/usr/local/tmp/qt-everywhere-opensource-src-5.2.1/qtwebkit/Source/WTF/release/libWTF.a(MediaTime.o): In function `WTF::MediaTime::createWithFloat(float, int)':
wtf/MediaTime.cpp:(.text+0x12c): undefined reference to `__builtin_signbit'
which is unresolved with
Version 14.0.2.144 Build 20140120

http://software.intel.com/en-us/forums/topic/474961

Rich F.'s picture

Still seeing the same error in Qt 5.2.1 with

icc -V
Intel(R) C Intel(R) 64 Compiler XE for applications running on Intel(R) 64, Version 14.0.1.106 Build 20131008

any ideas?

Rich

 

Michael B.'s picture

got the same problemwhile compiling Qt5.2 with icpc14 on linux 64-bit, quirk is here:
("template typename T" is in sharp brackets, which won't show correctly in this example due to the html-tags of this board)


//--- code snippet ---

/* UNUSED_PARAM */
#if COMPILER(INTEL) && !(defined(WIN32) || defined(_WIN32)) || COMPILER(RVCT)

template

inline void unusedParam(T& x) { (void)x; }

#define UNUSED_PARAM(variable) unusedParam(variable)

#elif COMPILER(MSVC)

#define UNUSED_PARAM(variable) (void)&variable

#else

#define UNUSED_PARAM(variable) (void)variable

#endif

//--- end code snippet -----


Warnings and error messages:
In file included from ../WTF/wtf/Platform.h(32),
from ./config.h(30),
from disassembler/udis86/udis86.c(27):
../WTF/wtf/Compiler.h(317): warning #77: this declaration has no storage class or type specifier
template
^

In file included from ../WTF/wtf/Platform.h(32),
from ./config.h(30),
from disassembler/udis86/udis86.c(27):
../WTF/wtf/Compiler.h(317): error: expected a ";"
template
^

compilation aborted for disassembler/udis86/udis86.c (code 2)

Any suggestions on how to solve that?

kind regards, Michael

anonymous's picture

This happens in an include. It seems that the standard includes are not working on icpc 12

anonymous's picture

This is very disappointing, I am trying to compile my project (that works with VC) using the Intel compiler and get this message.

Add a Comment

Have a technical question? Visit our forums. Have site or software product issues? Contact support.