Skip to content

Commit 2656aa8

Browse files
committed
C++ front-end: fix parentheses matching for alignas parsing
We had parentheses consumed by rCommaExpression while still expecting to find one after this rule executed.
1 parent e98f000 commit 2656aa8

File tree

1 file changed

+5
-0
lines changed
  • regression/cpp/type_traits_essentials1

1 file changed

+5
-0
lines changed

regression/cpp/type_traits_essentials1/main.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ template<typename T> using x=V<T>;
3030
using type __attribute__((__nodebug__)) = int;
3131
#endif
3232

33+
struct alignas(0x1) t
34+
{
35+
char c;
36+
};
37+
3338
template<typename T>
3439
class C
3540
{

0 commit comments

Comments
 (0)