2 Replies Latest reply: Mar 27, 2014 2:54 PM by mrjones69 RSS

    compile errors in <complex> when using 12.4 beta with -std=c++11

    mrjones69

      There are a number of compile errors in the <complex> header when using 12.4 beta with -std=c++11.

       

      This is easily reproduced with a trivial program.

       

      foo.c:

        #include <complex>

        int main( void ) { return 0; }

       

      CC -std=c++11 foo.c

       

      "/export/home/SolarisStudio12.4-beta_mar14-solaris-x86/lib/compilers/CC-gcc/include/c++/4.7.2/complex", line 581: Error: "inline" is not allowed here.

      "/export/home/SolarisStudio12.4-beta_mar14-solaris-x86/lib/compilers/CC-gcc/include/c++/4.7.2/complex", line 581: Error: Multiple declaration for __complex_abs.

      "/export/home/SolarisStudio12.4-beta_mar14-solaris-x86/lib/compilers/CC-gcc/include/c++/4.7.2/complex", line 581: Error: __complex__ is not defined.

      "/export/home/SolarisStudio12.4-beta_mar14-solaris-x86/lib/compilers/CC-gcc/include/c++/4.7.2/complex", line 581: Error: Badly formed expression.

      "/export/home/SolarisStudio12.4-beta_mar14-solaris-x86/lib/compilers/CC-gcc/include/c++/4.7.2/complex", line 584: Error: "inline" is not allowed here.

      "/export/home/SolarisStudio12.4-beta_mar14-solaris-x86/lib/compilers/CC-gcc/include/c++/4.7.2/complex", line 584: Error: __complex__ is not defined.

      "/export/home/SolarisStudio12.4-beta_mar14-solaris-x86/lib/compilers/CC-gcc/include/c++/4.7.2/complex", line 584: Error: Badly formed expression.

      "/export/home/SolarisStudio12.4-beta_mar14-solaris-x86/lib/compilers/CC-gcc/include/c++/4.7.2/complex", line 587: Error: __complex__ is not defined.

      "/export/home/SolarisStudio12.4-beta_mar14-solaris-x86/lib/compilers/CC-gcc/include/c++/4.7.2/complex", line 587: Error: "," expected instead of "long".

      "/export/home/SolarisStudio12.4-beta_mar14-solaris-x86/lib/compilers/CC-gcc/include/c++/4.7.2/complex", line 587: Error: Multiple declaration for __complex_abs.

      "/export/home/SolarisStudio12.4-beta_mar14-solaris-x86/lib/compilers/CC-gcc/include/c++/4.7.2/complex", line 588: Error: The function "__builtin_cabsl" must have a prototype.

      "/export/home/SolarisStudio12.4-beta_mar14-solaris-x86/lib/compilers/CC-gcc/include/c++/4.7.2/complex", line 592: Error: complex is not defined.

      "/export/home/SolarisStudio12.4-beta_mar14-solaris-x86/lib/compilers/CC-gcc/include/c++/4.7.2/complex", line 592: Error: ")" expected instead of "<".

      "/export/home/SolarisStudio12.4-beta_mar14-solaris-x86/lib/compilers/CC-gcc/include/c++/4.7.2/complex", line 603: Error: complex is not defined.

      "/export/home/SolarisStudio12.4-beta_mar14-solaris-x86/lib/compilers/CC-gcc/include/c++/4.7.2/complex", line 603: Error: ")" expected instead of "<".

      "/export/home/SolarisStudio12.4-beta_mar14-solaris-x86/lib/compilers/CC-gcc/include/c++/4.7.2/complex", line 608: Error: "inline" is not allowed here.

      "/export/home/SolarisStudio12.4-beta_mar14-solaris-x86/lib/compilers/CC-gcc/include/c++/4.7.2/complex", line 608: Error: Multiple declaration for __complex_arg.

      "/export/home/SolarisStudio12.4-beta_mar14-solaris-x86/lib/compilers/CC-gcc/include/c++/4.7.2/complex", line 608: Error: __complex__ is not defined.

      "/export/home/SolarisStudio12.4-beta_mar14-solaris-x86/lib/compilers/CC-gcc/include/c++/4.7.2/complex", line 608: Error: Badly formed expression.

      "/export/home/SolarisStudio12.4-beta_mar14-solaris-x86/lib/compilers/CC-gcc/include/c++/4.7.2/complex", line 611: Error: "inline" is not allowed here.

      "/export/home/SolarisStudio12.4-beta_mar14-solaris-x86/lib/compilers/CC-gcc/include/c++/4.7.2/complex", line 611: Error: Multiple declaration for __complex_arg.

      "/export/home/SolarisStudio12.4-beta_mar14-solaris-x86/lib/compilers/CC-gcc/include/c++/4.7.2/complex", line 611: Error: __complex__ is not defined.

      "/export/home/SolarisStudio12.4-beta_mar14-solaris-x86/lib/compilers/CC-gcc/include/c++/4.7.2/complex", line 611: Error: Badly formed expression.

      "/export/home/SolarisStudio12.4-beta_mar14-solaris-x86/lib/compilers/CC-gcc/include/c++/4.7.2/complex", line 614: Error: __complex__ is not defined.

      "/export/home/SolarisStudio12.4-beta_mar14-solaris-x86/lib/compilers/CC-gcc/include/c++/4.7.2/complex", line 614: Error: "," expected instead of "long".