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 243527 - inaccuracy tests (clang): complex test with C++11 ref-qualifiers
Summary: inaccuracy tests (clang): complex test with C++11 ref-qualifiers
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:
: 243523 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-04-03 14:16 UTC by soldatov
Modified: 2014-04-24 02:08 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 14:16:58 UTC
File: CXX/over/over.match/over.match.funcs/p4-0x.cpp
Errors:
CXX/over/over.match/over.match.funcs/p4-0x.cpp 8 unexpected token: &
CXX/over/over.match/over.match.funcs/p4-0x.cpp 9 unexpected token: &&
CXX/over/over.match/over.match.funcs/p4-0x.cpp 11 unexpected token: int
CXX/over/over.match/over.match.funcs/p4-0x.cpp 12 unexpected token: float
CXX/over/over.match/over.match.funcs/p4-0x.cpp 17 unexpected token: operator
CXX/over/over.match/over.match.funcs/p4-0x.cpp 18 unexpected token: operator
CXX/over/over.match/over.match.funcs/p4-0x.cpp 22 unexpected token: &
CXX/over/over.match/over.match.funcs/p4-0x.cpp 23 unexpected token: &&
CXX/over/over.match/over.match.funcs/p4-0x.cpp 25 unexpected token: int
CXX/over/over.match/over.match.funcs/p4-0x.cpp 26 unexpected token: float
CXX/over/over.match/over.match.funcs/p4-0x.cpp 28 unexpected token: const
CXX/over/over.match/over.match.funcs/p4-0x.cpp 29 unexpected token: &&
CXX/over/over.match/over.match.funcs/p4-0x.cpp 30 unexpected token: const
CXX/over/over.match/over.match.funcs/p4-0x.cpp 31 unexpected token: const

Code:
template<typename T> T &lvalue();
template<typename T> T &&xvalue();
template<typename T> T prvalue();

struct X0 {
  int &f() &;
  float &f() &&;

  template<typename T> int &ft(T) &;
  template<typename T> float &ft(T) &&;

  typedef int &(*func_int_ref)();
  typedef float &(*func_float_ref)();

  operator func_int_ref() &;
  operator func_float_ref() &&;

  int &operator+(const X0&) &;
  float &operator+(const X0&) &&;

  template<typename T> int &operator+(const T&) &;
  template<typename T> float &operator+(const T&) &&;

  int &h() const&;
  float &h() &&;
  int &h2() const&;
  float &h2() const&&;
};
Comment 1 petrk 2014-04-11 19:10:51 UTC
Fixed in http://hg.netbeans.org/cnd-main/rev/ef4fa31cd51b
Comment 2 petrk 2014-04-14 13:23:18 UTC
*** Bug 243523 has been marked as a duplicate of this bug. ***
Comment 3 Quality Engineering 2014-04-18 02:42:22 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/ef4fa31cd51b
User: Petr Kudryavtsev <petrk@netbeans.org>
Log: Fixed #243527 - inaccuracy tests (clang): complex test with C++11 ref-qualifiers
Comment 4 soldatov 2014-04-22 07:39:31 UTC
verified
no errors in latest test report
Comment 5 Quality Engineering 2014-04-24 02:08:17 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/6b7e7737c226
User: Petr Kudryavtsev <petrk@netbeans.org>
Log: Fixed #243527 - inaccuracy tests (clang): complex test with C++11 ref-qualifiers
(transplanted from ef4fa31cd51b7185963f766bd20735fa72af9ffd)