public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/45651] New: internal compiler error: in import_export_decl, at cp/decl2.c:2344
@ 2010-09-12 11:46 kamaraju at gmail dot com
2010-09-12 13:40 ` [Bug c++/45651] " steven at gcc dot gnu dot org
` (5 more replies)
0 siblings, 6 replies; 9+ messages in thread
From: kamaraju at gmail dot com @ 2010-09-12 11:46 UTC (permalink / raw)
To: gcc-bugs
root@kusumanchi:/home/593456# cat error.cpp
namespace { template <int T> struct A {}; }
template <int T> struct B { void f(A<T>); };
template struct B<1>;
template<int T> void B<T>::f(A<T>) {}
root@kusumanchi:/home/593456# /usr/lib/gcc-snapshot/bin/g++ -v error.cpp
Using built-in specs.
COLLECT_GCC=/usr/lib/gcc-snapshot/bin/g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc-snapshot/libexec/gcc/i486-linux-gnu/4.6.0/lto-wrapper
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 20100828-1'
--with-bugurl=file:///usr/share/doc/gcc-snapshot/README.Bugs
--enable-languages=c,ada,c++,fortran,objc,obj-c++
--prefix=/usr/lib/gcc-snapshot --enable-shared --enable-multiarch
--enable-linker-build-id --with-system-zlib --disable-nls --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin
--enable-gold --with-plugin-ld=ld.gold --enable-objc-gc --enable-targets=all
--with-arch-32=i586 --with-tune=generic --disable-werror --enable-checking=yes
--build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.6.0 20100828 (experimental) [trunk revision 163616] (Debian
20100828-1)
COLLECT_GCC_OPTIONS='-v' '-shared-libgcc' '-mtune=generic' '-march=i586'
/usr/lib/gcc-snapshot/libexec/gcc/i486-linux-gnu/4.6.0/cc1plus -quiet -v
-D_GNU_SOURCE error.cpp -quiet -dumpbase error.cpp -mtune=generic -march=i586
-auxbase error -version -o /tmp/ccQKGBGy.s
GNU C++ (Debian 20100828-1) version 4.6.0 20100828 (experimental) [trunk
revision 163616] (i486-linux-gnu)
compiled by GNU C version 4.6.0 20100828 (experimental) [trunk revision
163616], GMP version 4.3.2, MPFR version 3.0.0-p3, MPC version 0.8.2
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
ignoring nonexistent directory "/usr/local/include/i486-linux-gnu"
ignoring nonexistent directory
"/usr/lib/gcc-snapshot/lib/gcc/i486-linux-gnu/4.6.0/../../../../i486-linux-gnu/include"
ignoring nonexistent directory "/usr/include/i486-linux-gnu"
#include "..." search starts here:
#include <...> search starts here:
/usr/lib/gcc-snapshot/lib/gcc/i486-linux-gnu/4.6.0/../../../../include/c++/4.6.0
/usr/lib/gcc-snapshot/lib/gcc/i486-linux-gnu/4.6.0/../../../../include/c++/4.6.0/i486-linux-gnu
/usr/lib/gcc-snapshot/lib/gcc/i486-linux-gnu/4.6.0/../../../../include/c++/4.6.0/backward
/usr/lib/gcc-snapshot/lib/gcc/i486-linux-gnu/4.6.0/include
/usr/local/include
/usr/lib/gcc-snapshot/include
/usr/lib/gcc-snapshot/lib/gcc/i486-linux-gnu/4.6.0/include-fixed
/usr/include
End of search list.
GNU C++ (Debian 20100828-1) version 4.6.0 20100828 (experimental) [trunk
revision 163616] (i486-linux-gnu)
compiled by GNU C version 4.6.0 20100828 (experimental) [trunk revision
163616], GMP version 4.3.2, MPFR version 3.0.0-p3, MPC version 0.8.2
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 4e52e07a42ee405526b1bbb53d4dbd43
error.cpp: In instantiation of 'void B<T>::f({anonymous}::A<T>) [with int T =
1]':
error.cpp:3:17: instantiated from here
error.cpp:4:37: internal compiler error: in import_export_decl, at
cp/decl2.c:2344
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-snapshot/README.Bugs> for instructions.
This bug was originally reported at
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=593456 . The bug seems to be
present since gcc-4.3.
Please let me know if you need any further information.
--
Summary: internal compiler error: in import_export_decl, at
cp/decl2.c:2344
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: kamaraju at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45651
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/45651] internal compiler error: in import_export_decl, at cp/decl2.c:2344
2010-09-12 11:46 [Bug c++/45651] New: internal compiler error: in import_export_decl, at cp/decl2.c:2344 kamaraju at gmail dot com
@ 2010-09-12 13:40 ` steven at gcc dot gnu dot org
2010-09-12 13:46 ` [Bug c++/45651] [4.3 / 4.4 / 4.5 / 4.6 Regression] ICE " paolo dot carlini at oracle dot com
` (4 subsequent siblings)
5 siblings, 0 replies; 9+ messages in thread
From: steven at gcc dot gnu dot org @ 2010-09-12 13:40 UTC (permalink / raw)
To: gcc-bugs
--
steven at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu dot org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2010-09-12 13:40:14
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45651
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/45651] [4.3 / 4.4 / 4.5 / 4.6 Regression] ICE in import_export_decl, at cp/decl2.c:2344
2010-09-12 11:46 [Bug c++/45651] New: internal compiler error: in import_export_decl, at cp/decl2.c:2344 kamaraju at gmail dot com
2010-09-12 13:40 ` [Bug c++/45651] " steven at gcc dot gnu dot org
@ 2010-09-12 13:46 ` paolo dot carlini at oracle dot com
2010-09-12 17:57 ` [Bug c++/45651] [4.3/4.4/4.5/4.6 " rguenth at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 9+ messages in thread
From: paolo dot carlini at oracle dot com @ 2010-09-12 13:46 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from paolo dot carlini at oracle dot com 2010-09-12 13:46 -------
Happens in 4_2-branch too, 4_1-branch was fine.
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|internal compiler error: in |[4.3 / 4.4 / 4.5 / 4.6
|import_export_decl, at |Regression] ICE in
|cp/decl2.c:2344 |import_export_decl, at
| |cp/decl2.c:2344
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45651
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/45651] [4.3/4.4/4.5/4.6 Regression] ICE in import_export_decl, at cp/decl2.c:2344
2010-09-12 11:46 [Bug c++/45651] New: internal compiler error: in import_export_decl, at cp/decl2.c:2344 kamaraju at gmail dot com
2010-09-12 13:40 ` [Bug c++/45651] " steven at gcc dot gnu dot org
2010-09-12 13:46 ` [Bug c++/45651] [4.3 / 4.4 / 4.5 / 4.6 Regression] ICE " paolo dot carlini at oracle dot com
@ 2010-09-12 17:57 ` rguenth at gcc dot gnu dot org
2010-09-13 15:59 ` rguenth at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-09-12 17:57 UTC (permalink / raw)
To: gcc-bugs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.3.6
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45651
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/45651] [4.3/4.4/4.5/4.6 Regression] ICE in import_export_decl, at cp/decl2.c:2344
2010-09-12 11:46 [Bug c++/45651] New: internal compiler error: in import_export_decl, at cp/decl2.c:2344 kamaraju at gmail dot com
` (2 preceding siblings ...)
2010-09-12 17:57 ` [Bug c++/45651] [4.3/4.4/4.5/4.6 " rguenth at gcc dot gnu dot org
@ 2010-09-13 15:59 ` rguenth at gcc dot gnu dot org
2010-09-13 16:01 ` paolo dot carlini at oracle dot com
2010-09-13 18:54 ` hjl dot tools at gmail dot com
5 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-09-13 15:59 UTC (permalink / raw)
To: gcc-bugs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45651
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/45651] [4.3/4.4/4.5/4.6 Regression] ICE in import_export_decl, at cp/decl2.c:2344
2010-09-12 11:46 [Bug c++/45651] New: internal compiler error: in import_export_decl, at cp/decl2.c:2344 kamaraju at gmail dot com
` (3 preceding siblings ...)
2010-09-13 15:59 ` rguenth at gcc dot gnu dot org
@ 2010-09-13 16:01 ` paolo dot carlini at oracle dot com
2010-09-13 18:54 ` hjl dot tools at gmail dot com
5 siblings, 0 replies; 9+ messages in thread
From: paolo dot carlini at oracle dot com @ 2010-09-13 16:01 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from paolo dot carlini at oracle dot com 2010-09-13 16:01 -------
Seems a rather annoying regression, let's ask H.J. a binary search...
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hjl dot tools at gmail dot
| |com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45651
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/45651] [4.3/4.4/4.5/4.6 Regression] ICE in import_export_decl, at cp/decl2.c:2344
2010-09-12 11:46 [Bug c++/45651] New: internal compiler error: in import_export_decl, at cp/decl2.c:2344 kamaraju at gmail dot com
` (4 preceding siblings ...)
2010-09-13 16:01 ` paolo dot carlini at oracle dot com
@ 2010-09-13 18:54 ` hjl dot tools at gmail dot com
5 siblings, 0 replies; 9+ messages in thread
From: hjl dot tools at gmail dot com @ 2010-09-13 18:54 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from hjl dot tools at gmail dot com 2010-09-13 18:53 -------
It is caused by revision 115086:
http://gcc.gnu.org/ml/gcc-cvs/2006-06/msg00805.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45651
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/45651] [4.3/4.4/4.5/4.6 Regression] ICE in import_export_decl, at cp/decl2.c:2344
[not found] <bug-45651-4@http.gcc.gnu.org/bugzilla/>
2011-03-08 15:53 ` jason at gcc dot gnu.org
@ 2011-03-08 17:30 ` jason at gcc dot gnu.org
1 sibling, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu.org @ 2011-03-08 17:30 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45651
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> 2011-03-08 17:30:32 UTC ---
Author: jason
Date: Tue Mar 8 17:30:25 2011
New Revision: 170781
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170781
Log:
PR c++/45651
* pt.c (instantiate_decl): Don't clear DECL_INTERFACE_KNOWN on
!TREE_PUBLIC decls.
Added:
trunk/gcc/testsuite/g++.dg/template/anon5.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/45651] [4.3/4.4/4.5/4.6 Regression] ICE in import_export_decl, at cp/decl2.c:2344
[not found] <bug-45651-4@http.gcc.gnu.org/bugzilla/>
@ 2011-03-08 15:53 ` jason at gcc dot gnu.org
2011-03-08 17:30 ` jason at gcc dot gnu.org
1 sibling, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu.org @ 2011-03-08 15:53 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45651
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
AssignedTo|unassigned at gcc dot |jason at gcc dot gnu.org
|gnu.org |
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2011-03-08 17:30 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-12 11:46 [Bug c++/45651] New: internal compiler error: in import_export_decl, at cp/decl2.c:2344 kamaraju at gmail dot com
2010-09-12 13:40 ` [Bug c++/45651] " steven at gcc dot gnu dot org
2010-09-12 13:46 ` [Bug c++/45651] [4.3 / 4.4 / 4.5 / 4.6 Regression] ICE " paolo dot carlini at oracle dot com
2010-09-12 17:57 ` [Bug c++/45651] [4.3/4.4/4.5/4.6 " rguenth at gcc dot gnu dot org
2010-09-13 15:59 ` rguenth at gcc dot gnu dot org
2010-09-13 16:01 ` paolo dot carlini at oracle dot com
2010-09-13 18:54 ` hjl dot tools at gmail dot com
[not found] <bug-45651-4@http.gcc.gnu.org/bugzilla/>
2011-03-08 15:53 ` jason at gcc dot gnu.org
2011-03-08 17:30 ` 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).