This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52654] New: [C++11] Warn on overflow in user-defined literals
- From: "marc.glisse at normalesup dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 21 Mar 2012 10:45:14 +0000
- Subject: [Bug c++/52654] New: [C++11] Warn on overflow in user-defined literals
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52654
Bug #: 52654
Summary: [C++11] Warn on overflow in user-defined literals
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: marc.glisse@normalesup.org
Hello,
should there be a warning for this kind of overflow? (-Wall -Wextra is
currently silent)
int operator"" _w(unsigned long long){return 0;}
int main(){
return 12345678901234567890123456789012345678901234567890_w;
}