- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
using F = void();
- Tags:
- CC++
- Development Tools
- Intel® C++ Compiler
- Intel® Parallel Studio XE
- Intel® System Studio
- Optimization
- Parallel Computing
- Vectorization
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Nicolas,
What Intel compiler version did you use? and can you also let us know your command line options?
Thanks,
Viet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi and thanks for responding! :)
Oh yeah, I forgot. So I'm using ICC 18.0.0 with no command flag options at all.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I got the same error with Gnu7.3 and ICC 18.0
Can you confirm the error only seen with Intel Compiler and worked on GNU?
Thanks,
Viet
$ icpc t2.cpp -c -std=c++17
t2.cpp(10): error: expected a ";"
F f override;
^
compilation aborted for t2.cpp (code 2)
$ g++ t2.cpp -c -std=c++17
t2.cpp:10:3: error: expected ‘;’ at end of member declaration
F f override;
^
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This is also a gcc bug. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87174
Clang compiles the code just fine.
The code is well-formed, as a member-declarator is defined as ([class.mem]):
> member-declarator:
> - declarator virt-specifier-seq[opt] pure-specifier[opt]
Here, 'override' is a virt-specifier belonging to the virt-specifier-seq.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've reported this to the developer. The internal bug is CMPLRS-52580
Thanks,
Viet
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page