------- Comment #6 from andrew dot stubbs at st dot com  2006-09-12 07:44 
-------
Subject: Re:  Incorrectly Accepts double declarations

bangerth at dealii dot org wrote:
> 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.

Not according to the C++ standard. Section 7.3.3 clause 8 explicitly 
outlaws this example.


-- 


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

Reply via email to