[Bug c++/20420] Incorrectly Accepts double declarations

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Tue Sep 12 04:00:00 GMT 2006



------- Comment #5 from bangerth at dealii dot org  2006-09-12 04:00 -------
(In reply to comment #4)
> I suppose this is the same basic problem?

No, that code is definitely legal and unobjectionable. Just as having two
extern declarations of the same variable in the same scope (or two forward
declarations of a function) is not a problem.

W.


-- 


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



More information about the Gcc-bugs mailing list