This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/63543] incomplete type error should suppress duplicates


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63543

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic

--- Comment #3 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> ---
The C++ FE prints:

test.c:6:12: error: invalid use of incomplete type âstruct undefinedâ
   int x = f->a;
            ^
test.c:2:8: note: forward declaration of âstruct undefinedâ
 struct undefined;
        ^

but it also prints it three times.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]