public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/54538] New: Getting assembler messages when compiling
@ 2012-09-09 19:07 leonid at volnitsky dot com
2012-09-10 8:29 ` [Bug c++/54538] [4.8 Regression] " jakub at gcc dot gnu.org
` (11 more replies)
0 siblings, 12 replies; 13+ messages in thread
From: leonid at volnitsky dot com @ 2012-09-09 19:07 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54538
Bug #: 54538
Summary: Getting assembler messages when compiling
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: leonid@volnitsky.com
Created attachment 28157
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28157
scc.ii
I am getting "Assembler Messages" below from gcc-4.8 when compiling my code.
scc.ii file is attached (original code -- https://github.com/lvv/scc ). I can
successfully compile if I will use gcc-3.7.1.
Error Messages:
---------------------------------------
{standard input}: Assembler messages:
{standard input}:12769: Error: symbol
`_ZNK3sto11chain_rangeIT_E12default_predMUlRKiE_clES4_' is already defined
{standard input}:17883: Error: symbol
`_ZSt4moveIRN3sto11chain_rangeIT_E12default_predMUlRKiE_EEONSt16remove_referenceIS2_E4typeEOS2_'
is already defined
{standard input}:17903: Error: symbol
`_ZNSt8functionIFbRKiEEC2IN3sto11chain_rangeIT_E12default_predMUlS1_E_EvEET_'
is already defined
{standard input}:23564: Error: symbol
`_ZNSt14_Function_base13_Base_managerIN3sto11chain_rangeIT_E12default_predMUlRKiE_EE21_M_not_empty_functionIS7_EEbRKT_'
is already defined
{standard input}:23583: Error: symbol
`_ZNSt17_Function_handlerIFbRKiEN3sto11chain_rangeIT_E12default_predMUlS1_E_EE9_M_invokeERKSt9_Any_dataS1_'
is already defined
{standard input}:23617: Error: symbol
`_ZNSt14_Function_base13_Base_managerIN3sto11chain_rangeIT_E12default_predMUlRKiE_EE10_M_managerERSt9_Any_dataRKS9_St18_Manager_operation'
is already defined
{standard input}:23722: Error: symbol
`_ZNSt14_Function_base13_Base_managerIN3sto11chain_rangeIT_E12default_predMUlRKiE_EE15_M_init_functorERSt9_Any_dataOS7_'
is already defined
{standard input}:28014: Error: symbol
`_ZNSt14_Function_base13_Base_managerIN3sto11chain_rangeIT_E12default_predMUlRKiE_EE14_M_get_pointerERKSt9_Any_data'
is already defined
{standard input}:28040: Error: symbol
`_ZNSt9_Any_data9_M_accessIPN3sto11chain_rangeIT_E12default_predMUlRKiE_EEERS3_v'
is already defined
{standard input}:28062: Error: symbol
`_ZNSt14_Function_base13_Base_managerIN3sto11chain_rangeIT_E12default_predMUlRKiE_EE8_M_cloneERSt9_Any_dataRKS9_St17integral_constantIbLb0EE'
is already defined
{standard input}:28096: Error: symbol
`_ZNSt14_Function_base13_Base_managerIN3sto11chain_rangeIT_E12default_predMUlRKiE_EE10_M_destroyERSt9_Any_dataSt17integral_constantIbLb0EE'
is already defined
{standard input}:28121: Error: symbol
`_ZNSt14_Function_base13_Base_managerIN3sto11chain_rangeIT_E12default_predMUlRKiE_EE15_M_init_functorERSt9_Any_dataOS7_St17integral_constantIbLb0EE'
is already defined
{standard input}:31822: Error: symbol
`_ZNKSt9_Any_data9_M_accessIPN3sto11chain_rangeIT_E12default_predMUlRKiE_EEERKS3_v'
is already defined
----------------------------------------------------------------------
Compiled with:
g++ -std=gnu++11 -Wall -pipe -Wno-sign-compare -I /home/lvv/p/ -include debug.h
-Wno-unused-function -I /home/lvv/p/scc -I /home/lvv/p -include
/home/lvv/p/scc/.scc.h /home/lvv/p/scc/scc.cc -o /tmp/lvv-scc
GCC version:
gcc -v
Using built-in specs.
COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.0-pre9999/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.8.0-pre9999/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-4.8.0_pre9999/work/gcc-4.8.0-9999/configure
--prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.0-pre9999
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.0-pre9999/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.0-pre9999
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.0-pre9999/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.0-pre9999/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.0-pre9999/include/g++-v4
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec
--disable-fixed-point --with-ppl --with-cloog --disable-ppl-version-check
--with-cloog-include=/usr/include/cloog-ppl --enable-lto --enable-nls
--without-included-gettext --with-system-zlib --enable-obsolete
--disable-werror --enable-secureplt --enable-multilib
--with-multilib-list=m32,m64 --enable-libmudflap --disable-libssp
--enable-libgomp
--with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.8.0-pre9999/python
--enable-checking=release --disable-libgcj --enable-languages=c,c++,go,fortran
--enable-shared --enable-threads=posix --enable-__cxa_atexit
--enable-clocale=gnu --enable-targets=all --with-bugurl=http://bugs.gentoo.org/
--with-pkgversion='Gentoo 4.8.0_pre9999'
Thread model: posix
gcc version 4.8.0-pre9999 20120820 (experimental) commit
2bf99680c2012de150798c933642aa4c82a85410 (Gentoo 4.8.0_pre9999)
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/54538] [4.8 Regression] Getting assembler messages when compiling
2012-09-09 19:07 [Bug c++/54538] New: Getting assembler messages when compiling leonid at volnitsky dot com
@ 2012-09-10 8:29 ` jakub at gcc dot gnu.org
2012-09-10 8:32 ` jakub at gcc dot gnu.org
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-09-10 8:29 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54538
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-09-10
CC| |jakub at gcc dot gnu.org,
| |jason at gcc dot gnu.org
Target Milestone|--- |4.8.0
Summary|Getting assembler messages |[4.8 Regression] Getting
|when compiling |assembler messages when
| |compiling
Ever Confirmed|0 |1
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-09-10 08:29:28 UTC ---
Started in between r189000 and r189400 (r189[123]00 issued errors on it).
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/54538] [4.8 Regression] Getting assembler messages when compiling
2012-09-09 19:07 [Bug c++/54538] New: Getting assembler messages when compiling leonid at volnitsky dot com
2012-09-10 8:29 ` [Bug c++/54538] [4.8 Regression] " jakub at gcc dot gnu.org
@ 2012-09-10 8:32 ` jakub at gcc dot gnu.org
2012-09-10 8:38 ` jakub at gcc dot gnu.org
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-09-10 8:32 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54538
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-09-10 08:32:18 UTC ---
Created attachment 28159
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28159
pr54538.ii
Reduced testcase for -std=c++11 -O2. The mangled name doesn't demangle with
c++filt btw.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/54538] [4.8 Regression] Getting assembler messages when compiling
2012-09-09 19:07 [Bug c++/54538] New: Getting assembler messages when compiling leonid at volnitsky dot com
2012-09-10 8:29 ` [Bug c++/54538] [4.8 Regression] " jakub at gcc dot gnu.org
2012-09-10 8:32 ` jakub at gcc dot gnu.org
@ 2012-09-10 8:38 ` jakub at gcc dot gnu.org
2012-09-10 9:07 ` leonid at volnitsky dot com
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-09-10 8:38 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54538
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-09-10 08:37:49 UTC ---
In r189000 there were two different symbols:
_ZNSt17_Function_handlerIFbRFiSt6vectorIiSaIiEEEENSt11chain_rangeIRS2_E12default_predMUlPS3_E_EE9_M_invokeERKSt9_Any_dataS4_
_ZNSt17_Function_handlerIFbRFiSt6vectorIiSaIiEEEENSt11chain_rangeIOS2_E12default_predMUlPS3_E_EE9_M_invokeERKSt9_Any_dataS4_
one was &, the other &&.
Now they are both:
_ZNSt17_Function_handlerIFbRFiSt6vectorIiSaIiEEEENSt11chain_rangeIT_E12default_predMUlPS3_E_EE9_M_invokeERKSt9_Any_dataS4_
...IRS2_E... vs. ... IOS2_E... vs. ...IT_E...
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/54538] [4.8 Regression] Getting assembler messages when compiling
2012-09-09 19:07 [Bug c++/54538] New: Getting assembler messages when compiling leonid at volnitsky dot com
` (2 preceding siblings ...)
2012-09-10 8:38 ` jakub at gcc dot gnu.org
@ 2012-09-10 9:07 ` leonid at volnitsky dot com
2012-09-10 14:13 ` markus at trippelsdorf dot de
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: leonid at volnitsky dot com @ 2012-09-10 9:07 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54538
--- Comment #4 from Leonid Volnitsky <leonid at volnitsky dot com> 2012-09-10 09:07:23 UTC ---
> I can successfully compile if I will use gcc-3.7.1
Incorrect version. It should be 4.7.1
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/54538] [4.8 Regression] Getting assembler messages when compiling
2012-09-09 19:07 [Bug c++/54538] New: Getting assembler messages when compiling leonid at volnitsky dot com
` (3 preceding siblings ...)
2012-09-10 9:07 ` leonid at volnitsky dot com
@ 2012-09-10 14:13 ` markus at trippelsdorf dot de
2012-09-10 14:39 ` leonid at volnitsky dot com
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: markus at trippelsdorf dot de @ 2012-09-10 14:13 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54538
Markus Trippelsdorf <markus at trippelsdorf dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |markus at trippelsdorf dot
| |de
--- Comment #5 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2012-09-10 14:13:29 UTC ---
Both icpc and clang++ reject the testcase:
clang:
pr54538.ii:283:13: error: no matching function for call to 'range'
auto r9 = range (v9);
^~~~~
pr54538.ii:277:66: note: candidate template ignored: substitution failure [with
Rn = std::vector<int, std::allocator<int> > &]: non-type template
argument is not a constant expression
template <class Rn> eIF <is_range <Rn> (), chain_range <Rn &&>>range (Rn &&
rn)
~~~~~~~~ ^
pr54538.ii:284:14: error: no matching function for call to 'range'
auto rr9 = range (mk_v9 ());
^~~~~
pr54538.ii:277:66: note: candidate template ignored: substitution failure [with
Rn = std::vector<int, std::allocator<int> >]: non-type template
argument is not a constant expression
template <class Rn> eIF <is_range <Rn> (), chain_range <Rn &&>>range (Rn &&
rn)
icpc:
...
pr54538.ii(283): error: no instance of function template "std::range" matches
the argument list
argument types are: (std::vector<int, std::allocator<int>>)
auto r9 = range (v9);
^
pr54538.ii(284): error: no instance of function template "std::range" matches
the argument list
argument types are: (std::vector<int, std::allocator<int>>)
auto rr9 = range (mk_v9 ());
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/54538] [4.8 Regression] Getting assembler messages when compiling
2012-09-09 19:07 [Bug c++/54538] New: Getting assembler messages when compiling leonid at volnitsky dot com
` (4 preceding siblings ...)
2012-09-10 14:13 ` markus at trippelsdorf dot de
@ 2012-09-10 14:39 ` leonid at volnitsky dot com
2012-09-10 14:44 ` leonid at volnitsky dot com
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: leonid at volnitsky dot com @ 2012-09-10 14:39 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54538
--- Comment #6 from Leonid Volnitsky <leonid at volnitsky dot com> 2012-09-10 14:39:26 UTC ---
This code is very alpha and not supposed to be compiled with something not GCC.
CLANG probably will be able to compile it when they will fix constexpr bug
11851 ( http://llvm.org/bugs/show_bug.cgi?id=11851). Don't know about ICC or
how it supports C++11.
Assembler messeges were not from unit test, but from this:
scc 1
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/54538] [4.8 Regression] Getting assembler messages when compiling
2012-09-09 19:07 [Bug c++/54538] New: Getting assembler messages when compiling leonid at volnitsky dot com
` (5 preceding siblings ...)
2012-09-10 14:39 ` leonid at volnitsky dot com
@ 2012-09-10 14:44 ` leonid at volnitsky dot com
2012-09-10 14:52 ` markus at trippelsdorf dot de
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: leonid at volnitsky dot com @ 2012-09-10 14:44 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54538
--- Comment #7 from Leonid Volnitsky <leonid at volnitsky dot com> 2012-09-10 14:43:55 UTC ---
It seams that gcc bugzilla substituted text "bug some-number" with erroneous
link.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/54538] [4.8 Regression] Getting assembler messages when compiling
2012-09-09 19:07 [Bug c++/54538] New: Getting assembler messages when compiling leonid at volnitsky dot com
` (6 preceding siblings ...)
2012-09-10 14:44 ` leonid at volnitsky dot com
@ 2012-09-10 14:52 ` markus at trippelsdorf dot de
2012-09-10 17:47 ` jason at gcc dot gnu.org
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: markus at trippelsdorf dot de @ 2012-09-10 14:52 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54538
--- Comment #8 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2012-09-10 14:51:53 UTC ---
(In reply to comment #7)
> It seams that gcc bugzilla substituted text "bug some-number" with erroneous
> link.
Never mind, bugzilla just isn't psycic yet ;-)
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/54538] [4.8 Regression] Getting assembler messages when compiling
2012-09-09 19:07 [Bug c++/54538] New: Getting assembler messages when compiling leonid at volnitsky dot com
` (7 preceding siblings ...)
2012-09-10 14:52 ` markus at trippelsdorf dot de
@ 2012-09-10 17:47 ` jason at gcc dot gnu.org
2012-09-10 23:51 ` jason at gcc dot gnu.org
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: jason at gcc dot gnu.org @ 2012-09-10 17:47 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54538
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
--- Comment #9 from Jason Merrill <jason at gcc dot gnu.org> 2012-09-10 17:47:12 UTC ---
Looks like it was 189190.
http://gcc.gnu.org/viewcvs?view=revision&revision=189190
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/54538] [4.8 Regression] Getting assembler messages when compiling
2012-09-09 19:07 [Bug c++/54538] New: Getting assembler messages when compiling leonid at volnitsky dot com
` (8 preceding siblings ...)
2012-09-10 17:47 ` jason at gcc dot gnu.org
@ 2012-09-10 23:51 ` jason at gcc dot gnu.org
2012-09-10 23:52 ` jason at gcc dot gnu.org
2012-09-10 23:52 ` jason at gcc dot gnu.org
11 siblings, 0 replies; 13+ messages in thread
From: jason at gcc dot gnu.org @ 2012-09-10 23:51 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54538
--- Comment #10 from Jason Merrill <jason at gcc dot gnu.org> 2012-09-10 23:51:41 UTC ---
Author: jason
Date: Mon Sep 10 23:51:34 2012
New Revision: 191164
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=191164
Log:
PR c++/54538
PR c++/53783
* pt.c (tsubst_copy_and_build) [LAMBDA_EXPR]: Go back to using RECUR
for LAMBDA_EXPR_EXTRA_SCOPE except for function scope.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-mangle4.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/54538] [4.8 Regression] Getting assembler messages when compiling
2012-09-09 19:07 [Bug c++/54538] New: Getting assembler messages when compiling leonid at volnitsky dot com
` (10 preceding siblings ...)
2012-09-10 23:52 ` jason at gcc dot gnu.org
@ 2012-09-10 23:52 ` jason at gcc dot gnu.org
11 siblings, 0 replies; 13+ messages in thread
From: jason at gcc dot gnu.org @ 2012-09-10 23:52 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54538
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #10 from Jason Merrill <jason at gcc dot gnu.org> 2012-09-10 23:51:41 UTC ---
Author: jason
Date: Mon Sep 10 23:51:34 2012
New Revision: 191164
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=191164
Log:
PR c++/54538
PR c++/53783
* pt.c (tsubst_copy_and_build) [LAMBDA_EXPR]: Go back to using RECUR
for LAMBDA_EXPR_EXTRA_SCOPE except for function scope.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-mangle4.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog
--- Comment #11 from Jason Merrill <jason at gcc dot gnu.org> 2012-09-10 23:52:41 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/54538] [4.8 Regression] Getting assembler messages when compiling
2012-09-09 19:07 [Bug c++/54538] New: Getting assembler messages when compiling leonid at volnitsky dot com
` (9 preceding siblings ...)
2012-09-10 23:51 ` jason at gcc dot gnu.org
@ 2012-09-10 23:52 ` jason at gcc dot gnu.org
2012-09-10 23:52 ` jason at gcc dot gnu.org
11 siblings, 0 replies; 13+ messages in thread
From: jason at gcc dot gnu.org @ 2012-09-10 23:52 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54538
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #11 from Jason Merrill <jason at gcc dot gnu.org> 2012-09-10 23:52:41 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2012-09-10 23:52 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-09 19:07 [Bug c++/54538] New: Getting assembler messages when compiling leonid at volnitsky dot com
2012-09-10 8:29 ` [Bug c++/54538] [4.8 Regression] " jakub at gcc dot gnu.org
2012-09-10 8:32 ` jakub at gcc dot gnu.org
2012-09-10 8:38 ` jakub at gcc dot gnu.org
2012-09-10 9:07 ` leonid at volnitsky dot com
2012-09-10 14:13 ` markus at trippelsdorf dot de
2012-09-10 14:39 ` leonid at volnitsky dot com
2012-09-10 14:44 ` leonid at volnitsky dot com
2012-09-10 14:52 ` markus at trippelsdorf dot de
2012-09-10 17:47 ` jason at gcc dot gnu.org
2012-09-10 23:51 ` jason at gcc dot gnu.org
2012-09-10 23:52 ` jason at gcc dot gnu.org
2012-09-10 23:52 ` jason 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).