public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/61329] #include <regex> and _GLIBCXX_DEBUG causes multiple symbol definition.
2014-05-27 8:34 [Bug libstdc++/61329] New: #include <regex> and _GLIBCXX_DEBUG causes multiple symbol definition pluto at agmk dot net
@ 2014-05-27 8:34 ` pluto at agmk dot net
2014-05-27 8:47 ` pluto at agmk dot net
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pluto at agmk dot net @ 2014-05-27 8:34 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61329
--- Comment #1 from Pawel Sikora <pluto at agmk dot net> ---
Created attachment 32861
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=32861&action=edit
testcase
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libstdc++/61329] New: #include <regex> and _GLIBCXX_DEBUG causes multiple symbol definition.
@ 2014-05-27 8:34 pluto at agmk dot net
2014-05-27 8:34 ` [Bug libstdc++/61329] " pluto at agmk dot net
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: pluto at agmk dot net @ 2014-05-27 8:34 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61329
Bug ID: 61329
Summary: #include <regex> and _GLIBCXX_DEBUG causes multiple
symbol definition.
Product: gcc
Version: 4.9.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: pluto at agmk dot net
Created attachment 32860
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=32860&action=edit
testcase
% g++ t.cpp -Og -g0 -c -std=c++11 -D_GLIBCXX_DEBUG
% g++ u.cpp -Og -g0 -c -std=c++11 -D_GLIBCXX_DEBUG
% g++ t.o u.o -s -o /dev/null
u.o: In function
`std::__detail::__7::_State_base::_M_print(std::__7::basic_ostream<char,
std::__7::char_traits<char> >&) const':
u.cpp:(.text+0x0): multiple definition of
`std::__detail::__7::_State_base::_M_print(std::__7::basic_ostream<char,
std::__7::char_traits<char> >&) const'
t.o:t.cpp:(.text+0x0): first defined here
u.o: In function
`std::__detail::__7::_State_base::_M_dot(std::__7::basic_ostream<char,
std::__7::char_traits<char> >&, long) const':
u.cpp:(.text+0x1ae): multiple definition of
`std::__detail::__7::_State_base::_M_dot(std::__7::basic_ostream<char,
std::__7::char_traits<char> >&, long) const'
t.o:t.cpp:(.text+0x1ae): first defined here
collect2: error: ld returned 1 exit status
% g++ -v
Using built-in specs.
COLLECT_GCC=/ahome/pawels/dvm/master/toolchain/gcc/sysroot/x86_64-gnu-linux/bin/x86_64-gnu-linux-g++
COLLECT_LTO_WRAPPER=/home/pawels/dvm/master/toolchain/gcc/sysroot/x86_64-gnu-linux/bin/../lib64/gcc/x86_64-gnu-linux/4.9.1/lto-wrapper
Target: x86_64-gnu-linux
Configured with: ../configure --target=x86_64-gnu-linux --with-arch=x86-64
--prefix=/home/pawels/toolchain.git/gcc/sysroot/x86_64-gnu-linux
--with-sysroot=/home/pawels/toolchain.git/gcc/sysroot/x86_64-gnu-linux
--libdir=/home/pawels/toolchain.git/gcc/sysroot/x86_64-gnu-linux/lib64
--libexecdir=/home/pawels/toolchain.git/gcc/sysroot/x86_64-gnu-linux/lib64
--with-slibdir=/home/pawels/toolchain.git/gcc/sysroot/x86_64-gnu-linux/lib64
--with-gmp-include=/home/pawels/toolchain.git/gcc/x86_64-gnu-linux/gcc-math-runtime/include
--with-gmp-lib=/home/pawels/toolchain.git/gcc/x86_64-gnu-linux/gcc-math-runtime/lib
--with-mpfr-include=/home/pawels/toolchain.git/gcc/x86_64-gnu-linux/gcc-math-runtime/include
--with-mpfr-lib=/home/pawels/toolchain.git/gcc/x86_64-gnu-linux/gcc-math-runtime/lib
--with-mpc-include=/home/pawels/toolchain.git/gcc/x86_64-gnu-linux/gcc-math-runtime/include
--with-mpc-lib=/home/pawels/toolchain.git/gcc/x86_64-gnu-linux/gcc-math-runtime/lib
--with-linker-hash-style=both --disable-multilib --enable-nls --disable-libssp
--disable-libquadmath --disable-libitm --enable-tls
--enable-libstdcxx-allocator=new --enable-extern-template
--enable-libstdcxx-time=rt --enable-libstdcxx-threads
--enable-symvers=gnu-versioned-namespace --disable-libstdcxx-pch --enable-lto
--enable-plugin --enable-c99 --enable-long-long --enable-linux-futex
--enable-threads=posix --enable-shared --with-pic --enable-gold
--enable-libgomp --enable-__cxa_atexit --disable-initfini-array
--disable-gnu-unique-object --enable-languages=c,c++ --enable-checking=release
--with-long-double-128 --disable-cld --disable-bootstrap
Thread model: posix
gcc version 4.9.1 20140505 (prerelease) (GCC)
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libstdc++/61329] #include <regex> and _GLIBCXX_DEBUG causes multiple symbol definition.
2014-05-27 8:34 [Bug libstdc++/61329] New: #include <regex> and _GLIBCXX_DEBUG causes multiple symbol definition pluto at agmk dot net
2014-05-27 8:34 ` [Bug libstdc++/61329] " pluto at agmk dot net
@ 2014-05-27 8:47 ` pluto at agmk dot net
2014-05-27 10:56 ` redi at gcc dot gnu.org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pluto at agmk dot net @ 2014-05-27 8:47 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61329
--- Comment #2 from Pawel Sikora <pluto at agmk dot net> ---
_M_dot/_M_print declaration from include/c++/4.9.1/bits/regex_automaton.h needs
inline attribute.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libstdc++/61329] #include <regex> and _GLIBCXX_DEBUG causes multiple symbol definition.
2014-05-27 8:34 [Bug libstdc++/61329] New: #include <regex> and _GLIBCXX_DEBUG causes multiple symbol definition pluto at agmk dot net
2014-05-27 8:34 ` [Bug libstdc++/61329] " pluto at agmk dot net
2014-05-27 8:47 ` pluto at agmk dot net
@ 2014-05-27 10:56 ` redi at gcc dot gnu.org
2014-05-27 11:14 ` redi at gcc dot gnu.org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: redi at gcc dot gnu.org @ 2014-05-27 10:56 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61329
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2014-05-27
Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org
Target Milestone|--- |4.9.1
Ever confirmed|0 |1
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libstdc++/61329] #include <regex> and _GLIBCXX_DEBUG causes multiple symbol definition.
2014-05-27 8:34 [Bug libstdc++/61329] New: #include <regex> and _GLIBCXX_DEBUG causes multiple symbol definition pluto at agmk dot net
` (2 preceding siblings ...)
2014-05-27 10:56 ` redi at gcc dot gnu.org
@ 2014-05-27 11:14 ` redi at gcc dot gnu.org
2014-05-27 13:13 ` redi at gcc dot gnu.org
2014-05-27 13:13 ` redi at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: redi at gcc dot gnu.org @ 2014-05-27 11:14 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61329
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Tue May 27 11:14:17 2014
New Revision: 210968
URL: http://gcc.gnu.org/viewcvs?rev=210968&root=gcc&view=rev
Log:
PR libstdc++/61329
* include/bits/regex_automaton.tcc (_State_base::_M_print): Add
inline specifier.
(_State_base::_M_dot): Likewise.
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/bits/regex_automaton.tcc
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libstdc++/61329] #include <regex> and _GLIBCXX_DEBUG causes multiple symbol definition.
2014-05-27 8:34 [Bug libstdc++/61329] New: #include <regex> and _GLIBCXX_DEBUG causes multiple symbol definition pluto at agmk dot net
` (3 preceding siblings ...)
2014-05-27 11:14 ` redi at gcc dot gnu.org
@ 2014-05-27 13:13 ` redi at gcc dot gnu.org
2014-05-27 13:13 ` redi at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: redi at gcc dot gnu.org @ 2014-05-27 13:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61329
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
fixed for 4.9.1
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Tue May 27 13:12:55 2014
New Revision: 210972
URL: http://gcc.gnu.org/viewcvs?rev=210972&root=gcc&view=rev
Log:
PR libstdc++/61329
* include/bits/regex_automaton.tcc (_State_base::_M_print): Add
inline specifier.
(_State_base::_M_dot): Likewise.
Modified:
branches/gcc-4_9-branch/libstdc++-v3/ChangeLog
branches/gcc-4_9-branch/libstdc++-v3/include/bits/regex_automaton.tcc
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libstdc++/61329] #include <regex> and _GLIBCXX_DEBUG causes multiple symbol definition.
2014-05-27 8:34 [Bug libstdc++/61329] New: #include <regex> and _GLIBCXX_DEBUG causes multiple symbol definition pluto at agmk dot net
` (4 preceding siblings ...)
2014-05-27 13:13 ` redi at gcc dot gnu.org
@ 2014-05-27 13:13 ` redi at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: redi at gcc dot gnu.org @ 2014-05-27 13:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61329
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
fixed for 4.9.1
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Tue May 27 13:12:55 2014
New Revision: 210972
URL: http://gcc.gnu.org/viewcvs?rev=210972&root=gcc&view=rev
Log:
PR libstdc++/61329
* include/bits/regex_automaton.tcc (_State_base::_M_print): Add
inline specifier.
(_State_base::_M_dot): Likewise.
Modified:
branches/gcc-4_9-branch/libstdc++-v3/ChangeLog
branches/gcc-4_9-branch/libstdc++-v3/include/bits/regex_automaton.tcc
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-05-27 13:13 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-27 8:34 [Bug libstdc++/61329] New: #include <regex> and _GLIBCXX_DEBUG causes multiple symbol definition pluto at agmk dot net
2014-05-27 8:34 ` [Bug libstdc++/61329] " pluto at agmk dot net
2014-05-27 8:47 ` pluto at agmk dot net
2014-05-27 10:56 ` redi at gcc dot gnu.org
2014-05-27 11:14 ` redi at gcc dot gnu.org
2014-05-27 13:13 ` redi at gcc dot gnu.org
2014-05-27 13:13 ` redi at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).