C++14 Syntax in Eclipse CDT compiles but marked as syntax error (indexer) -


eclipse cdt gives me syntax error valid c++14 syntax. compiles , runs syntax highlighting broken.

i have mingw , eclipse running. c++14 program compiles , executes incorrect syntax highlighting / syntax checking.

here source code:

#include <iostream> auto main() -> int {     //binary literals c++14 digit separators c++14     auto 7 = int{0b0000'0111};      std::cout << 7 << std::endl;     std::cout << __cplusplus << std::endl;     return int{0}; } 

and here output / build log. can see compiler settings
(-d__gxx_experimental_cxx0x__ -o0 -g3 -wall -c -fmessage-length=0 -std=c++14) , highlighting in it.

enter image description here

what need setup syntax detecition allows c++14 syntax?

edit: seems indexer right bet - unable make indexer work intended.

on windows 7 using mingw. open providers , click on "cdt built-in compiler settings mingw" add -std=c++14. whole string ${command} ${flags} -e -p -v -dd "${inputs}" -std=c++14 after hit apply , ok use project->index->rebuild in hope of removing errors. syntax error still persists.

this mentioned in the faq c++11 recognized indexer.

i have latest mingw version installed. when call g++ --version get: g++ (gcc) 5.3.0 response. there no manual 5.3 assume of 5.4 valid version.

the problem seems support c++14 not added yet.

here bugreport collects c++14 issues. there depends on section other bug reports alre listed. among them bug 451086 mentions binary literals (n3472), single-quotation-mark digit separator (n3781).

so seems issue known , adressed @ point in future.


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -