https://bugs.llvm.org/show_bug.cgi?id=38236
Richard Smith <richard-l...@metafoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |richard-l...@metafoo.co.uk
Resolution|--- |INVALID
--- Comment #1 from Richard Smith <richard-l...@metafoo.co.uk> ---
> clang++ accepts the code, but g++ rejects it:
>
> code0.cpp:8:24: error: flexible array member 'A::tasks' in an otherwise
> empty 'struct A'
> ordered_tasks * tasks[];
> ^
This is intentional.
C has a rule that structs can't be empty, C++ does not, so it makes sense that
this restriction would not exist in C++.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs