public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/28774]  New: Request for warning where const/volatile is ignored in a cast
@ 2006-08-18 18:02 simon_baldwin at yahoo dot com
  2006-08-24  1:59 ` [Bug c++/28774] " bangerth at dealii dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: simon_baldwin at yahoo dot com @ 2006-08-18 18:02 UTC (permalink / raw)
  To: gcc-bugs

In the code fragment

  int i = static_cast<const int>(1.234);
  int j = static_cast<volatile int>(1.234);

the const and volatile qualifiers in the cast are silently ignored, even with
-Wall -W -pedantic.  A warning from g++ for this mild infraction would be
useful.


-- 
           Summary: Request for warning where const/volatile is ignored in a
                    cast
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: simon_baldwin at yahoo dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28774


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-03-12 21:48 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-18 18:02 [Bug c++/28774] New: Request for warning where const/volatile is ignored in a cast simon_baldwin at yahoo dot com
2006-08-24  1:59 ` [Bug c++/28774] " bangerth at dealii dot org
2006-08-24 16:53 ` simon_baldwin at yahoo dot com
2006-08-27  5:04 ` pinskia at gcc dot gnu dot org
2006-08-27  6:44 ` ian at airs dot com
2007-01-23 14:35 ` manu at gcc dot gnu dot org
2007-03-12 12:10 ` manu at gcc dot gnu dot org
2007-03-12 21:48 ` simon_baldwin at yahoo dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).