[LLVMbugs] [Bug 11980] New: Failed to catch missing semicolon followed by "static constexpr"
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Feb 10 21:14:29 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=11980
Bug #: 11980
Summary: Failed to catch missing semicolon followed by "static
constexpr"
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: C++0x
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: jyasskin at google.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
$ cat test2.cc
#include <stddef.h>
class TearableAtomic {
struct EightBytes {
char space[8];
}
static constexpr size_t array_len = 3;
};
$ clang++ -stdlib=libc++ -std=c++11 -fsyntax-only test2.cc
test2.cc:7:20: error: declaration of constexpr static data member 'size_t'
requires an initializer
static constexpr size_t array_len = 3;
^
test2.cc:7:26: error: expected ';' at end of declaration list
static constexpr size_t array_len = 3;
^
;
2 errors generated.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list