Discussion:
[Bug c/61416] New: incorrect struct tag in diagnostic
tromey at gcc dot gnu.org
2014-06-04 19:47:43 UTC
Permalink
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61416

Bug ID: 61416
Summary: incorrect struct tag in diagnostic
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: tromey at gcc dot gnu.org

Consider this source:

struct ptid
{
int x;
};

typedef struct ptid ptid_t;

int whatever (void *arg)
{
ptid_t *r = arg;

return r->x;
}


Compile it with -Wc++-compat:

barimba. gcc --syntax-only -Wc++-compat /tmp/r.c
/tmp/r.c: In function ‘whatever’:
/tmp/r.c:10:15: warning: request for implicit conversion from ‘void *’ to
‘struct ptid_t *’ not permitted in C++ [-Wc++-compat]
ptid_t *r = arg;
^


Note that the error mentions "struct ptid_t". However, that is
not a valid name for the type.
mpolacek at gcc dot gnu.org
2014-06-10 05:32:41 UTC
Permalink
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61416

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |mpolacek at gcc dot gnu.org

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
I think dup and/or related to PR56980.
manu at gcc dot gnu.org
2014-10-05 23:47:23 UTC
Permalink
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61416

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-10-05
CC| |manu at gcc dot gnu.org
Ever confirmed|0 |1

--- Comment #2 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
Anyway confirmed.
mpolacek at gcc dot gnu.org
2014-10-23 19:24:08 UTC
Permalink
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61416

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |DUPLICATE

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Dup.

*** This bug has been marked as a duplicate of bug 56980 ***

Loading...