[llvm-bugs] [Bug 52573] New: std=c2x is using some Gnu extensions

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Nov 21 08:02:38 PST 2021


            Bug ID: 52573
           Summary: std=c2x is using some Gnu extensions
           Product: clang
           Version: 12.0
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C
          Assignee: unassignedclangbugs at nondot.org
          Reporter: tydeman at tybor.com
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

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.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20211121/1441554f/attachment.html>

More information about the llvm-bugs mailing list