Click on image to see enlargment
This multi-module program is intended to count the number of students that made the dean's list in this spring's graduation but something is going horribly wrong. Note: it is given that the last student's name is followed by the traditional NULL.
bug18.mm lint Output
=== Multiple Modules: bug18.mm --- Module: graduation.c (C) --- Wrap-up for Module: graduation.c Info 752: local declarator 'graduates' (line 2, file graduation.c) not referenced --- Module: count.c (C) _ String deans_list; count.c 3 Error 18: Symbol 'deans_list' redeclared (basic) conflicts with line 3, file graduation.c _ } count.c 11 Info 818: Pointer parameter 'list' (line 4) could be declared as pointing to const
Reference Manual Explanation
18 Symbol 'Symbol' redeclared (TypeDiff) conflicts with Location -- A symbol is being redeclared. The parameter TypeDiff provides further information on how the types differ. Location is the location of the previous definition.
If you have comments or questions about this bug, please post them to our Discussion Forum
Previous Bug - Bug #845 - May 2010