[Bug other/55530] Visibility warning not always shown
jaak at ristioja dot ee
gcc-bugzilla@gcc.gnu.org
Thu Nov 29 13:38:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55530
--- Comment #1 from Jaak Ristioja <jaak at ristioja dot ee> 2012-11-29 13:37:29 UTC ---
Sorry, the minimal testcase should have been:
struct __attribute__ ((visibility("internal"))) A {};
struct B { A * a; }; /* warning: 'B' declared with greater visibility than the
type of its field 'B::a' [-Wattributes] */
struct C;
struct D { C * c; }; /* No warning */
struct __attribute__ ((visibility("internal"))) C {};
More information about the Gcc-bugs
mailing list