This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52654] [C++11] Warn on overflow in user-defined literals
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 30 Mar 2012 15:08:58 +0000
- Subject: [Bug c++/52654] [C++11] Warn on overflow in user-defined literals
- Auto-submitted: auto-generated
- References: <bug-52654-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52654
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-03-30 15:08:58 UTC ---
I think it depends on what the literal operator is used. If it is a const char
* or template, then it should allow any number of chars without a warning IMHO.
But when the C++ FE needs to parse that number as unsigned long long or long
double and the literal has too many digits for that, we should warn.