Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
R
riscv-gcc-1
  • Overview
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • lvzhengyang
  • riscv-gcc-1
  • Repository

Switch branch/tag
  • riscv-gcc-1
  • libstdc++-v3
  • testsuite
  • 20_util
  • from_chars
  • 3.cc
Find file
BlameHistoryPermalink
  • Jonathan Wakely's avatar
    libstdc++: Fix std::from_chars to ignore leading zeros in base 2 · 053ba9ec
    The parser for binary numbers returned an error if the entire string
    contains more digits than the result type. Leading zeros should be
    ignored.
    
    libstdc++-v3/ChangeLog:
    
    	* include/std/charconv (__from_chars_binary): Ignore leading zeros.
    	* testsuite/20_util/from_chars/1.cc: Check "0x1" for all bases,
    	not just 10 and 16.
    	* testsuite/20_util/from_chars/3.cc: New test.
    
    (cherry picked from commit eb0ff770e29715deb8b2e6f5da736e0c1e8f8d07)
    Jonathan Wakely committed Jun 24, 2020
    053ba9ec
3.cc 1.98 KB
Edit