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

Summary: inaccuracy tests (clang): Clang's blocks
Product: cnd Reporter: soldatov <soldatov>
Component: Code ModelAssignee: petrk
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: 8.0.1   
Hardware: PC   
OS: Solaris   
Issue Type: ENHANCEMENT Exception Reporter:

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.