https://bugs.llvm.org/show_bug.cgi?id=52573

            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: unassignedclangb...@nondot.org
          Reporter: tyde...@tybor.com
                CC: blitzrak...@gmail.com, dgre...@apple.com,
                    erik.pilking...@gmail.com, llvm-bugs@lists.llvm.org,
                    richard-l...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to