cyberdstar / muparserx

Automatically exported from code.google.com/p/muparserx
Other
0 stars 0 forks source link

Using C++11 features not supported by Intel compiler #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Checkout muparserx from SVN
2. Compile using latest Intel compiler

What is the expected output? What do you see instead?
The Intel compiler being fairly standard, I would expect that it compiles fine.

Instead it complains that the override keyword is not recognised by the part of 
the standard supported by the latest Intel compiler.

What version of the product are you using? On what operating system?
Latest SVN version on Linux. GCC 4.7 works fine, 4.6 doesn't, Intel doesn't.

Removing the overrides (should not change the behaviour of the program) or 
including the header with:

#ifdef __INTEL_COMPILER
#define override
#endif
#include "mpParser.h"

fixes the issue

Please provide any additional information below.

I also had to tweak a bit the Makefile in order to make gcc 4.7 compile it. 
Patch attached

Original issue reported on code.google.com by franje...@gmail.com on 17 Sep 2013 at 1:54

Attachments:

GoogleCodeExporter commented 9 years ago
This is an Issue of the Intel compiler and should be addressed on the Intel 
compilers bug tracker. The next release is going to require full C++11 support. 
Users of older compilers can resort to using older versions of muparserx.

Original comment by ib...@gmx.info on 22 Sep 2013 at 12:32

GoogleCodeExporter commented 9 years ago
Fair enough, in any case maybe this will be useful for somebody :)

Original comment by franje...@gmail.com on 23 Sep 2013 at 8:50