|
From: | Moritz Bunkus |
Subject: | [bug-gettext] [bug #50117] bogus "unterminated character constant" warning with C++14 single-quotation-mark as digit separators |
Date: | Sun, 22 Jan 2017 11:03:36 +0000 (UTC) |
User-agent: | Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36 |
URL: <http://savannah.gnu.org/bugs/?50117> Summary: bogus "unterminated character constant" warning with C++14 single-quotation-mark as digit separators Project: GNU gettext Submitted by: mbunkus Submitted on: Sun 22 Jan 2017 11:03:34 AM GMT Category: C Severity: 3 - Normal Item Group: None Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any _______________________________________________________ Details: xgettext doesn't support C++14's "Single-quotation-mark as a digit separator" feature[1] properly. It'll issue a warning about an "unterminated character constant" with the following trivial program: ------------------------------------------------------------ int main() { auto i = 1'234; return 0; } ------------------------------------------------------------ Invoke xgettext: ------------------------------------------------------------ [0 address@hidden ~/test] xgettext -o test.pot test2.cpp test2.cpp:2: warning: unterminated character constant ------------------------------------------------------------ If you want to verify that this is an actually valid C++14 program: ------------------------------------------------------------ [0 address@hidden ~/test] g++ -std=c++14 -o test2 test2.cpp [0 address@hidden ~/test] ------------------------------------------------------------ [1] http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3781.pdf _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?50117> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |