[LLVMbugs] [Bug 23970] New: 0o for Octal

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jun 26 15:47:36 PDT 2015


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

            Bug ID: 23970
           Summary: 0o for Octal
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: olafvdspek at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

People don't expect 010 == 8 to be true. Could you support a clearer prefix for
octal numbers (0o)?

Step 2 might be a warning for the old octal prefix.

AFAIK Python added support some time ago:
https://www.python.org/dev/peps/pep-3127/

I'm aware this isn't standard C++ but if this is possible I'd like to propose
it to ISO C++ as well.

I've started a discussion at isocpp.org as well:
https://groups.google.com/a/isocpp.org/forum/#!topic/std-proposals/IXXXDo3Y1rA

-- 
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/20150626/d198e7f0/attachment.html>


More information about the llvm-bugs mailing list