public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/51810] New: internal compiler error
@ 2012-01-10 13:11 dtardon at redhat dot com
2012-01-10 13:16 ` [Bug c++/51810] " dtardon at redhat dot com
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: dtardon at redhat dot com @ 2012-01-10 13:11 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51810
Bug #: 51810
Summary: internal compiler error
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: dtardon@redhat.com
SSIA
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/51810] internal compiler error
2012-01-10 13:11 [Bug c++/51810] New: internal compiler error dtardon at redhat dot com
@ 2012-01-10 13:16 ` dtardon at redhat dot com
2012-01-10 13:41 ` rguenth at gcc dot gnu.org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: dtardon at redhat dot com @ 2012-01-10 13:16 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51810
--- Comment #1 from David Tardon <dtardon at redhat dot com> 2012-01-10 13:15:48 UTC ---
Created attachment 26290
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26290
preprocessed source
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/51810] internal compiler error
2012-01-10 13:11 [Bug c++/51810] New: internal compiler error dtardon at redhat dot com
2012-01-10 13:16 ` [Bug c++/51810] " dtardon at redhat dot com
@ 2012-01-10 13:41 ` rguenth at gcc dot gnu.org
2012-01-10 14:42 ` rguenth at gcc dot gnu.org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-01-10 13:41 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51810
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |error-recovery,
| |ice-on-invalid-code
--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-01-10 13:40:26 UTC ---
Reducing.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/51810] internal compiler error
2012-01-10 13:11 [Bug c++/51810] New: internal compiler error dtardon at redhat dot com
2012-01-10 13:16 ` [Bug c++/51810] " dtardon at redhat dot com
2012-01-10 13:41 ` rguenth at gcc dot gnu.org
@ 2012-01-10 14:42 ` rguenth at gcc dot gnu.org
2012-01-10 14:43 ` rguenth at gcc dot gnu.org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-01-10 14:42 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51810
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-01-10
Ever Confirmed|0 |1
--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-01-10 14:42:13 UTC ---
Reduced testcase for the 4.6 branch:
template<typename _Alloc> struct allocator_traits {
template<typename _Tp> static typename _Tp::pointer
_S_pointer_helper(_Tp*);
typedef decltype(_S_pointer_helper((_Alloc*)0)) __pointer;
};
namespace std __attribute__ ((__visibility__ ("default"))) {
template<typename> struct allocator;
typedef std::allocator<int> _Alloc;
typedef typename allocator_traits<_Alloc>::template
rebind_traits<_Sp_cd_type> _Alloc_traits;
}
./cc1plus -quiet -std=c++0x t.3.ii
t.3.ii: In instantiation of ‘allocator_traits<std::allocator<int> >’:
t.3.ii:8:46: instantiated from here
t.3.ii:3:53: error: no matching function for call to
‘allocator_traits<std::allocator<int>
>::_S_pointer_helper(std::allocator<int>*)’
t.3.ii:3:53: note: candidate is:
in dependent_type_p, at cp/pt.c:18102
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/51810] internal compiler error
2012-01-10 13:11 [Bug c++/51810] New: internal compiler error dtardon at redhat dot com
` (2 preceding siblings ...)
2012-01-10 14:42 ` rguenth at gcc dot gnu.org
@ 2012-01-10 14:43 ` rguenth at gcc dot gnu.org
2012-01-10 16:33 ` markus at trippelsdorf dot de
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-01-10 14:43 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51810
--- Comment #4 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-01-10 14:43:12 UTC ---
Created attachment 26294
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26294
autoreduced testcase
Reduced testcase for trunk.
Program received signal SIGSEGV, Segmentation fault.
0x0000000000af5adb in fold_convert_loc (loc=0, type=0x7ffff584fc78, arg=0x0)
at /space/rguenther/src/svn/trunk/gcc/fold-const.c:1856
1856 tree orig = TREE_TYPE (arg);
(gdb) bt
#0 0x0000000000af5adb in fold_convert_loc (loc=0, type=0x7ffff584fc78,
arg=0x0) at /space/rguenther/src/svn/trunk/gcc/fold-const.c:1856
#1 0x000000000073fbda in cp_fold_convert (type=0x7ffff584fc78, expr=0x0)
at /space/rguenther/src/svn/trunk/gcc/cp/cvt.c:585
#2 0x00000000007297ae in build_static_cast_1 (type=0x7ffff584fc78,
expr=0x7ffff5830700, c_cast_p=0 '\000', valid_p=0x7fffffff4acf "\001",
complain=3) at /space/rguenther/src/svn/trunk/gcc/cp/typeck.c:5869
#3 0x000000000072b3b5 in build_static_cast (type=0x7ffff584fc78,
expr=0x7ffff5830700, complain=3)
at /space/rguenther/src/svn/trunk/gcc/cp/typeck.c:6044
#4 0x00000000007d4b3e in move (expr=0x7ffff5830700)
at /space/rguenther/src/svn/trunk/gcc/cp/tree.c:868
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/51810] internal compiler error
2012-01-10 13:11 [Bug c++/51810] New: internal compiler error dtardon at redhat dot com
` (3 preceding siblings ...)
2012-01-10 14:43 ` rguenth at gcc dot gnu.org
@ 2012-01-10 16:33 ` markus at trippelsdorf dot de
2012-12-04 16:37 ` paolo.carlini at oracle dot com
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: markus at trippelsdorf dot de @ 2012-01-10 16:33 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51810
--- Comment #5 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2012-01-10 16:32:23 UTC ---
Created attachment 26295
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26295
another reduced testcase
The testcase from Comment 4 doesn't work on my machine.
Here is another one.
% g++ -std=c++0x test.ii
test.ii: In instantiation of ‘boost::unordered::detail::table_impl<
<template-parameter-1-1> >::emplace_return
boost::unordered::detail::table_impl< <template-parameter-1-1>
>::emplace(Args&& ...) [with Args = {std::pair<const rtl::OUString,
{anonymous}::CommandInfo>}; Types =
boost::unordered::detail::map<std::allocator<std::pair<const rtl::OUString,
{anonymous}::CommandInfo> >, rtl::OUString, std::equal_to<rtl::OUString>,
std::equal_to<rtl::OUString> >; boost::unordered::detail::table_impl<
<template-parameter-1-1> >::emplace_return =
std::pair<boost::unordered::iterator_detail::iterator<std::pair<const
rtl::OUString, {anonymous}::CommandInfo>*, std::pair<const rtl::OUString,
{anonymous}::CommandInfo> >, bool>; typename
boost::unordered::detail::table<Types>::iterator =
boost::unordered::iterator_detail::iterator<std::pair<const rtl::OUString,
{anonymous}::CommandInfo>*, std::pair<const rtl::OUString,
{anonymous}::CommandInfo> >]’:
test.ii:416:9: required from ‘std::pair<typename
boost::unordered::detail::map<typename boost::unordered::detail::rebind_wrap<A,
std::pair<const K, T> >::type, K, H, P>::table::iterator, bool>
boost::unordered::unordered_map<K, T, <template-parameter-1-3>,
<template-parameter-1-4>, <template-parameter-1-5> >::emplace(Args&& ...) [with
Args = {std::pair<const rtl::OUString, {anonymous}::CommandInfo>}; K =
rtl::OUString; T = {anonymous}::CommandInfo; H = std::equal_to<rtl::OUString>;
P = std::equal_to<rtl::OUString>; A = std::allocator<std::pair<const
rtl::OUString, {anonymous}::CommandInfo> >; typename
boost::unordered::detail::map<typename boost::unordered::detail::rebind_wrap<A,
std::pair<const K, T> >::type, K, H, P>::table::iterator =
boost::unordered::iterator_detail::iterator<std::pair<const rtl::OUString,
{anonymous}::CommandInfo>*, std::pair<const rtl::OUString,
{anonymous}::CommandInfo> >]’
test.ii:420:9: required from ‘std::pair<typename
boost::unordered::detail::map<typename boost::unordered::detail::rebind_wrap<A,
std::pair<const K, T> >::type, K, H, P>::table::iterator, bool>
boost::unordered::unordered_map<K, T, <template-parameter-1-3>,
<template-parameter-1-4>, <template-parameter-1-5>
>::insert(boost::unordered::unordered_map<K, T, <template-parameter-1-3>,
<template-parameter-1-4>, <template-parameter-1-5> >::value_type&&) [with K =
rtl::OUString; T = {anonymous}::CommandInfo; H = std::equal_to<rtl::OUString>;
P = std::equal_to<rtl::OUString>; A = std::allocator<std::pair<const
rtl::OUString, {anonymous}::CommandInfo> >; typename
boost::unordered::detail::map<typename boost::unordered::detail::rebind_wrap<A,
std::pair<const K, T> >::type, K, H, P>::table::iterator =
boost::unordered::iterator_detail::iterator<std::pair<const rtl::OUString,
{anonymous}::CommandInfo>*, std::pair<const rtl::OUString,
{anonymous}::CommandInfo> >; boost::unordered::unordered_map<K, T,
<template-parameter-1-3>, <template-parameter-1-4>, <template-parameter-1-5>
>::value_type = std::pair<const rtl::OUString, {anonymous}::CommandInfo>]’
test.ii:536:69: required from here
test.ii:432:10: internal compiler error: Segmentation fault
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/51810] internal compiler error
2012-01-10 13:11 [Bug c++/51810] New: internal compiler error dtardon at redhat dot com
` (4 preceding siblings ...)
2012-01-10 16:33 ` markus at trippelsdorf dot de
@ 2012-12-04 16:37 ` paolo.carlini at oracle dot com
2012-12-05 7:57 ` markus at trippelsdorf dot de
2012-12-05 10:10 ` paolo.carlini at oracle dot com
7 siblings, 0 replies; 9+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-12-04 16:37 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51810
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |markus at trippelsdorf dot
| |de
--- Comment #6 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-12-04 16:36:44 UTC ---
Do we have a testcase actually ICEing with current mainline or 4_7-branch? I
don't think we do...
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/51810] internal compiler error
2012-01-10 13:11 [Bug c++/51810] New: internal compiler error dtardon at redhat dot com
` (5 preceding siblings ...)
2012-12-04 16:37 ` paolo.carlini at oracle dot com
@ 2012-12-05 7:57 ` markus at trippelsdorf dot de
2012-12-05 10:10 ` paolo.carlini at oracle dot com
7 siblings, 0 replies; 9+ messages in thread
From: markus at trippelsdorf dot de @ 2012-12-05 7:57 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51810
--- Comment #7 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2012-12-05 07:57:32 UTC ---
On 2012.12.04 at 16:36 +0000, paolo.carlini at oracle dot com wrote:
> --- Comment #6 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-12-04 16:36:44 UTC ---
> Do we have a testcase actually ICEing with current mainline or 4_7-branch? I
> don't think we do...
I cannot reproduce this issue anymore.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/51810] internal compiler error
2012-01-10 13:11 [Bug c++/51810] New: internal compiler error dtardon at redhat dot com
` (6 preceding siblings ...)
2012-12-05 7:57 ` markus at trippelsdorf dot de
@ 2012-12-05 10:10 ` paolo.carlini at oracle dot com
7 siblings, 0 replies; 9+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-12-05 10:10 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51810
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WORKSFORME
--- Comment #8 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-12-05 10:09:51 UTC ---
Ok, thanks, closing.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2012-12-05 10:10 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-10 13:11 [Bug c++/51810] New: internal compiler error dtardon at redhat dot com
2012-01-10 13:16 ` [Bug c++/51810] " dtardon at redhat dot com
2012-01-10 13:41 ` rguenth at gcc dot gnu.org
2012-01-10 14:42 ` rguenth at gcc dot gnu.org
2012-01-10 14:43 ` rguenth at gcc dot gnu.org
2012-01-10 16:33 ` markus at trippelsdorf dot de
2012-12-04 16:37 ` paolo.carlini at oracle dot com
2012-12-05 7:57 ` markus at trippelsdorf dot de
2012-12-05 10:10 ` paolo.carlini at oracle dot com
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).