public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/26542]  New: bogus diagnostic with -pedantic?: format ‘%p’ expects type ‘void*’, but argument 2 has type ‘A*’
@ 2006-03-03  9:50 pluto at agmk dot net
  2006-03-03 11:50 ` [Bug c/26542] bogus diagnostic with -pedantic?: format '%p'; expects type 'void*', but argument 2 has type 'A*' rguenth at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 11+ messages in thread
From: pluto at agmk dot net @ 2006-03-03  9:50 UTC (permalink / raw)
  To: gcc-bugs

$ g++ warn.cpp -Wall -ansi
no warnings.

$ g++ warn.cpp -Wall -pedantic
(...) format ‘%p’ expects type ‘void*’, but argument 2
has type ‘A*’


#include <cstdio>
struct A {};
int main()
{
    A* a = 0;
    printf("a = 0x%p\n", a);
    return 0;
}


-- 
           Summary: bogus diagnostic with -pedantic?: format
                    &#8216;%p&#8217; expects type &#8216;void*&#8217;, but
                    argument 2 has type &#8216;A*&#8217;
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pluto at agmk dot net
 GCC build triplet: x86-64-linux
  GCC host triplet: x86-64-linux
GCC target triplet: x86-64-linux


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


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

end of thread, other threads:[~2009-02-10 22:23 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-03  9:50 [Bug c/26542] New: bogus diagnostic with -pedantic?: format &#8216;%p&#8217; expects type &#8216;void*&#8217;, but argument 2 has type &#8216;A*&#8217; pluto at agmk dot net
2006-03-03 11:50 ` [Bug c/26542] bogus diagnostic with -pedantic?: format '%p'; expects type 'void*', but argument 2 has type 'A*' rguenth at gcc dot gnu dot org
2006-03-03 12:45 ` pinskia at gcc dot gnu dot org
2006-03-03 14:07 ` pinskia at gcc dot gnu dot org
2006-07-24 17:03 ` vz-gcc at zeitlins dot org
2006-07-24 17:16 ` pluto at agmk dot net
2006-12-08  4:37 ` pinskia at gcc dot gnu dot org
2006-12-08 11:08 ` vz-gcc at zeitlins dot org
2006-12-08 18:17   ` Andrew Pinski
2006-12-08 18:18 ` pinskia at gmail dot com
2009-02-10 22:23 ` jason dot orendorff at gmail 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).