bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gettext] [bug #43970] Incorrect "warning: unterminated string liter


From: Vaclav Slavik
Subject: [bug-gettext] [bug #43970] Incorrect "warning: unterminated string literal" for some C++11 raw strings
Date: Mon, 12 Jan 2015 10:29:46 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/600.2.5 (KHTML, like Gecko) Version/8.0.2 Safari/600.2.5

Follow-up Comment #4, bug #43970 (project gettext):

I see, this didn't occur to me (nor the fact that C++11 compiler won't compile
this until now). Wouldn't it be better, then, to (if necessary) start making a
distinction between C and C++ modes, instead of introducing a new C++11 one?
IMHO the example you gave is quite artificial and very unlikely to occur in
practice, but I get your point. It is even less likely to occur in C++,
though, because of the C++ culture that really frowns upon such macro uses.
Plus C++ compilers will eventually switch to having C++11/4/7 as the default
(some already did, although not gcc) and such code would have to be updated
anyway, making the chance of it occurring ever smaller.

The advantage of that would be that xgettext already differentiates between C
and C++ in its user interface (although not in the implementation, I think).
And it wouldn't be something that would have to be reevaluated in a few years
once legacy C++98 becomes, well, legacy for real. 

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?43970>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]