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 243549 - inaccuracy tests (clang): Clang's blocks
Summary: inaccuracy tests (clang): Clang's blocks
Status: NEW
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-04 09:04 UTC by soldatov
Modified: 2016-09-01 14:34 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2014-04-04 09:04:02 UTC
Links:
http://en.wikipedia.org/wiki/Blocks_%28C_language_extension%29
http://clang.llvm.org/docs/Block-ABI-Apple.html

File: CXX/temp/temp.decls/temp.variadic/ext-blocks.cpp
Errors:
CXX/temp/temp.decls/temp.variadic/ext-blocks.cpp 6 unexpected token: {
CXX/temp/temp.decls/temp.variadic/ext-blocks.cpp 8 unexpected token: {
CXX/temp/temp.decls/temp.variadic/ext-blocks.cpp 15 unexpected token: {
CXX/temp/temp.decls/temp.variadic/ext-blocks.cpp 25 unexpected token: {
CXX/temp/temp.decls/temp.variadic/ext-blocks.cpp 26 Unable to resolve identifier block_args.
CXX/temp/temp.decls/temp.variadic/ext-blocks.cpp 34 unexpected token: {
CXX/temp/temp.decls/temp.variadic/ext-blocks.cpp 35 Unable to resolve identifier block_args.
CXX/temp/temp.decls/temp.variadic/ext-blocks.cpp 43 unexpected token: {


Syntax:
template<typename ...Args>
int f0(Args ...args) {
  return ^ {
    return sizeof...(Args);
  }() + ^ {
    return sizeof...(args);
  }();
}
Comment 1 petrk 2014-04-15 11:15:32 UTC
As this is an extension, I changed issue type to enhancement.