This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17448] The compiler might detect a ODR failure within a single file (realted to friendness)
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Dec 2004 21:07:48 -0000
- Subject: [Bug c++/17448] The compiler might detect a ODR failure within a single file (realted to friendness)
- References: <20040913005829.17448.igodard@pacbell.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-04 21:07 -------
Fixed on the mainline, we reject it because struct B is not a complete struct/class at the point we define
the friend:
pr17448.cc: In function 'void Bar(A<T>&, B)':
pr17448.cc:5: error: 'b' has incomplete type
pr17448.cc:2: error: forward declaration of 'struct B'
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17448