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 243513 - inaccuracy tests (clang): trailing return types
Summary: inaccuracy tests (clang): trailing return types
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:
Depends on:
Blocks:
 
Reported: 2014-04-03 11:56 UTC by soldatov
Modified: 2014-04-24 02:07 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 11:56:34 UTC
File: CXX/dcl.dcl/basic.namespace/namespace.udecl/p1.cpp
Errors:
CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/p2.cpp 6 unexpected token: throw
Expected error: CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/p2.cpp 10 unexpected token: operator
CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/p2.cpp 16 unexpected token: {
CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/p2.cpp 17 unexpected token: try
CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/p2.cpp 18 unexpected token: catch
CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/p2.cpp 19 unexpected token: catch
CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/p2.cpp 20 unexpected token: }
CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/p2.cpp 42 unexpected token: ->
CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/p2.cpp 43 unexpected token: auto
CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/p2.cpp 44 unexpected token: ->
Expected error: CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/p2.cpp 47 unexpected token: auto
CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/p2.cpp 49 unexpected token: =

For example:
struct S {
  virtual ~S();

  void g() throw (auto(*)()->int);

};

void g(auto (*f)() -> int) {
  try { }
  catch (auto (&f)() -> int) { }
  catch (auto (*const f[10])() -> int) { }
}
Comment 1 petrk 2014-04-11 12:06:28 UTC
Fixed in http://hg.netbeans.org/cnd-main/rev/2c2cb0e486bf
Comment 2 Quality Engineering 2014-04-18 02:40:49 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/2c2cb0e486bf
User: Petr Kudryavtsev <petrk@netbeans.org>
Log: Fixed #243513 - inaccuracy tests (clang): trailing return types
Comment 3 soldatov 2014-04-22 07:28:11 UTC
verified
no errors in latest test report
Comment 4 Quality Engineering 2014-04-24 02:07:36 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/bd5bf2fb0fe0
User: Petr Kudryavtsev <petrk@netbeans.org>
Log: Fixed #243513 - inaccuracy tests (clang): trailing return types
(transplanted from 2c2cb0e486bffb8a41c0330c25a64b72a608b759)