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 mosu@sweet-chili ~/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 mosu@sweet-chili ~/test] g++ -std=c++14 -o test2 test2.cpp
[0 mosu@sweet-chili ~/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/