[llvm-bugs] [Bug 42481] New: locale::global fails to initialize with curly braces

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jul 2 03:26:21 PDT 2019


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

            Bug ID: 42481
           Summary: locale::global fails to initialize with curly braces
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: larry at refusetoown.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

Here is the syntax error I got. I copied the language off of page 1116 in "The
C++ Programming Language" book so I know it should work.

./Anti-Terror/mainwindow.cpp:45:27: error: expected ')'

locale::global(locale {"en_US.UTF-8"});

^

../Anti-Terror/mainwindow.cpp:45:19: note: to match this '('

locale::global(locale {"en_US.UTF-8"});

-- 
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/20190702/df88e26c/attachment.html>


More information about the llvm-bugs mailing list