Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

std=c2x is using some Gnu extensions #51540

Open Quuxplusone opened 3 years ago

Quuxplusone commented 3 years ago
Bugzilla Link PR52573
Status NEW
Importance P enhancement
Reported by Fred J. Tydeman (tydeman@tybor.com)
Reported on 2021-11-21 08:02:38 -0800
Last modified on 2021-11-21 08:02:38 -0800
Version 12.0
Hardware Other Linux
CC blitzrakete@gmail.com, dgregor@apple.com, erik.pilkington@gmail.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk
Fixed by commit(s)
Attachments
Blocks
Blocked by
See also
Using std=c2x is using gnu-folding-constant.  I believe c2x mode is supposed to
NOT use any gnu extensions.

The code in question is of the form:
  int vla[ (int)+0x4.0p0 ] = { 7 };

The message says a VLA was folded to a constant array.

This is on an ARM laptop computer running Fedora Linux 34.