public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/17947] New: bad warning with implicit conversion and __attribute__((deprecated))
@ 2004-10-12 15:20 joerg dot richter at pdv-fs dot de
  2004-10-12 16:07 ` [Bug c++/17947] " pinskia at gcc dot gnu dot org
  2004-10-12 16:14 ` bangerth at dealii dot org
  0 siblings, 2 replies; 6+ messages in thread
From: joerg dot richter at pdv-fs dot de @ 2004-10-12 15:20 UTC (permalink / raw)
  To: gcc-bugs

///////////////////////////
struct Foo
{
    operator int() __attribute__((deprecated));
};

int main()
{
  Foo f;
  (int)f;
}
///////////////////////////

gives: 

warning: `operator 1' is deprecated

In real code the '1' is often a bigger number.

-- 
           Summary: bad warning with implicit conversion and
                    __attribute__((deprecated))
           Product: gcc
           Version: 3.4.2
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: joerg dot richter at pdv-fs dot de
                CC: gcc-bugs at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <bug-17947-5469@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2007-01-19 16:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-12 15:20 [Bug c++/17947] New: bad warning with implicit conversion and __attribute__((deprecated)) joerg dot richter at pdv-fs dot de
2004-10-12 16:07 ` [Bug c++/17947] " pinskia at gcc dot gnu dot org
2004-10-12 16:14 ` bangerth at dealii dot org
     [not found] <bug-17947-5469@http.gcc.gnu.org/bugzilla/>
2007-01-17 17:21 ` patchapp at dberlin dot org
2007-01-19 16:05 ` manu at gcc dot gnu dot org
2007-01-19 16:10 ` manu at gcc dot gnu dot org

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).