Bug 534808 - [C++17] Add support for static_assert without message
Summary: [C++17] Add support for static_assert without message
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-parser (show other bugs)
Version: 9.4.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 9.5.0   Edit
Assignee: Thomas Corbat CLA
QA Contact: Doug Schaefer CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 490407
  Show dependency tree
 
Reported: 2018-05-17 07:52 EDT by Thomas Corbat CLA
Modified: 2018-06-01 11:54 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Corbat CLA 2018-05-17 07:52:05 EDT
Since C++17 static_assert does not need to have a message argument [dcl.dcl]/1.

Example:

static_assert(false);


Currently, this is not recognized and yields a syntax error.
Comment 1 Eclipse Genie CLA 2018-05-17 08:16:24 EDT
New Gerrit change created: https://git.eclipse.org/r/122866
Comment 3 Thomas Corbat CLA 2018-06-01 11:51:04 EDT
Fixed, thanks to Hansruedi Patzen for providing the fixes!