[llvm-bugs] [Bug 48556] New: -Wc++98-compat thinks __auto_type is auto

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Dec 18 16:38:56 PST 2020


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

            Bug ID: 48556
           Summary: -Wc++98-compat thinks __auto_type is auto
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: gabravier at gmail.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

__auto_type x = 0;

When compiling with `-Wc++98-compat`, Clang thinks `__auto_type` is C++11's
`auto`, when it is GNU C's `__auto_type`.

-- 
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/20201219/ebd13883/attachment.html>


More information about the llvm-bugs mailing list