This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 243522 - inaccuracy tests (clang): alignas
Summary: inaccuracy tests (clang): alignas
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.0.1
Hardware: PC Solaris
: P2 normal (vote)
Assignee: petrk
URL:
Keywords:
: 224034 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-04-03 13:17 UTC by soldatov
Modified: 2014-08-12 23:21 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2014-04-03 13:17:19 UTC
File: CXX/expr/expr.const/p5-0x.cpp
Errors:
CXX/expr/expr.const/p5-0x.cpp 64 unexpected token: ok
Expected error: CXX/expr/expr.const/p5-0x.cpp 65 unexpected token: incomplete
Expected error: CXX/expr/expr.const/p5-0x.cpp 66 unexpected token: expl
Expected error: CXX/expr/expr.const/p5-0x.cpp 67 unexpected token: ambig


Code:
struct OK {
  constexpr OK() {}
  constexpr operator int() { return 8; }
} constexpr ok;


// [dcl.align]p2: When the alignment-specifier is of the form
// alignas(assignment-expression), the assignment-expression shall be an
// integral constant expression
int alignas(ok) alignas1;
Comment 1 petrk 2014-04-15 11:11:56 UTC
http://hg.netbeans.org/cnd-main
Comment 2 petrk 2014-04-15 11:12:27 UTC
Fixed in http://hg.netbeans.org/cnd-main/rev/7441404ddffd
Comment 3 Quality Engineering 2014-04-18 02:42:52 UTC
Integrated into 'main-silver', will be available in build *201404180001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/7441404ddffd
User: Petr Kudryavtsev <petrk@netbeans.org>
Log: Fixed #243522 - inaccuracy tests (clang): alignas
Comment 4 soldatov 2014-04-22 07:36:17 UTC
verified
no errors in latest test report
Comment 5 Quality Engineering 2014-04-24 02:08:58 UTC
Integrated into 'releases/release80', will be available in build *201404240045* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/832ac877ef7f
User: Petr Kudryavtsev <petrk@netbeans.org>
Log: Fixed #243522 - inaccuracy tests (clang): alignas
(transplanted from 7441404ddffd93b55cd83a671f9a6fd9aaff3958)
Comment 6 petrk 2014-08-12 23:21:17 UTC
*** Bug 224034 has been marked as a duplicate of this bug. ***