This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/69470] [concepts] bogus constrained member class template redeclared with different access
- From: "rivanvx at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 09 Feb 2016 23:33:15 +0000
- Subject: [Bug c++/69470] [concepts] bogus constrained member class template redeclared with different access
- Auto-submitted: auto-generated
- References: <bug-69470-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69470
Vedran Miletic <rivanvx at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rivanvx at gmail dot com
--- Comment #1 from Vedran Miletic <rivanvx at gmail dot com> ---
Happens when building ns-3 [1] too.
[1016/2462] Compiling src/wifi/model/wifi-mac-queue.cc
In file included from ./ns3/test.h:24:0,
from ../src/spectrum/test/tv-helper-distribution-test.cc:23:
/usr/include/c++/6.0.0/sstream:300:7: error: âstruct
std::__cxx11::basic_stringbuf<_CharT, _Traits, _Alloc>::__xfer_bufptrsâ
redeclared with different access
struct __xfer_bufptrs
^~~~~~
Waf: Leaving directory
`/home/vedranm/workspace/ns-3-allinone/ns-3-dev/build-debug'
Build failed
-> task in 'ns3-spectrum-test' failed (exit status 1):
{task 140207810877328: cxx tv-helper-distribution-test.cc ->
tv-helper-distribution-test.cc.3.o}
['/usr/lib64/ccache/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror',
'-Wno-error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-aliasing',
'-I../src/spectrum', '-fPIC', '-pthread', '-I.', '-I..',
'-DNS3_BUILD_PROFILE_DEBUG', '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE',
'-DHAVE_SYS_IOCTL_H=1', '-DHAVE_IF_NETS_H=1', '-DHAVE_NET_ETHERNET_H=1',
'-DHAVE_PACKET_H=1', '-DHAVE_DL=1', '-DHAVE_IF_TUN_H=1',
'-DNS_TEST_SOURCEDIR="src/spectrum/test"',
'../src/spectrum/test/tv-helper-distribution-test.cc', '-c', '-o',
'/home/vedranm/workspace/ns-3-allinone/ns-3-dev/build-debug/src/spectrum/test/tv-helper-distribution-test.cc.3.o']
I'm using Fedora Rawhide x86_64.
$ g++ --version
g++ (GCC) 6.0.0 20160201 (Red Hat 6.0.0-0.9)
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[1] http://code.nsnam.org/ns-3-dev