public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/62207] New: ICE: tree check: expected tree that contains 'decl minimal' structure, have 'overload' in tsubst_copy, at cp/pt.c
@ 2014-08-20 17:24 glisse at gcc dot gnu.org
  2014-12-14  0:23 ` [Bug c++/62207] " ville.voutilainen at gmail dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: glisse at gcc dot gnu.org @ 2014-08-20 17:24 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62207

            Bug ID: 62207
           Summary: ICE: tree check: expected tree that contains 'decl
                    minimal' structure, have 'overload' in tsubst_copy, at
                    cp/pt.c
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Keywords: error-recovery, ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: glisse at gcc dot gnu.org

The following invalid file (found while reducing a different ICE) prints
several errors and ends with:

file.cpp:16:3: internal compiler error: tree check: expected tree that contains
'decl minimal' structure, have 'overload' in tsubst_copy, at cp/pt.c:12846
   ptr
   ^
0xe314e4 tree_contains_struct_check_failed(tree_node const*,
tree_node_structure_enum, char const*, int, char const*)
    /data/repos/gcc/pristine/gcc/tree.c:9321
0x62a998 contains_struct_check(tree_node*, tree_node_structure_enum, char
const*, int, char const*)
    /data/repos/gcc/pristine/gcc/tree.h:2843
0x62a998 tsubst_copy
    /data/repos/gcc/pristine/gcc/cp/pt.c:12846
0x630ee9 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
    /data/repos/gcc/pristine/gcc/cp/pt.c:15420
0x612f93 tsubst_expr
    /data/repos/gcc/pristine/gcc/cp/pt.c:14239
0x613391 tsubst_expr
    /data/repos/gcc/pristine/gcc/cp/pt.c:13665
0x6128a3 tsubst_expr
    /data/repos/gcc/pristine/gcc/cp/pt.c:13651
0x613533 tsubst_expr
    /data/repos/gcc/pristine/gcc/cp/pt.c:13837
0x61104e instantiate_decl(tree_node*, int, bool)
    /data/repos/gcc/pristine/gcc/cp/pt.c:20176
0x6569e4 instantiate_pending_templates(int)
    /data/repos/gcc/pristine/gcc/cp/pt.c:20292
0x69352d cp_write_global_declarations()
    /data/repos/gcc/pristine/gcc/cp/decl2.c:4355



class A {
  virtual create() const
} class PostModNothing class AllocatorNew;
template <0> void ptr();
template <class, class, class, class> class AbstractFactoryStd : A {
  create() const
} template <class, class> abstractFactoryStd() {
  new AbstractFactoryStd<int, int, PostModNothing, AllocatorNew>
}
template <class T_itfc, class T_impl, class T_PostMod, class T_Allocator>
typename a
    : obj_ptr_t
      AbstractFactoryStd<T_itfc, T_impl, T_PostMod, T_Allocator>::create()
      const const const {
  typename T_Allocator : ptr_t ptr;
  ptr
}
enableMueLuTpetra() {
  typedef int Base;
  typedef int Impl;
Teuchos:
abstractFactoryStd<Base, Impl>


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/62207] ICE: tree check: expected tree that contains 'decl minimal' structure, have 'overload' in tsubst_copy, at cp/pt.c
  2014-08-20 17:24 [Bug c++/62207] New: ICE: tree check: expected tree that contains 'decl minimal' structure, have 'overload' in tsubst_copy, at cp/pt.c glisse at gcc dot gnu.org
@ 2014-12-14  0:23 ` ville.voutilainen at gmail dot com
  2014-12-14  9:57 ` glisse at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: ville.voutilainen at gmail dot com @ 2014-12-14  0:23 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62207

Ville Voutilainen <ville.voutilainen at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ville.voutilainen at gmail dot com

--- Comment #1 from Ville Voutilainen <ville.voutilainen at gmail dot com> ---
Current trunk doesn't ICE.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/62207] ICE: tree check: expected tree that contains 'decl minimal' structure, have 'overload' in tsubst_copy, at cp/pt.c
  2014-08-20 17:24 [Bug c++/62207] New: ICE: tree check: expected tree that contains 'decl minimal' structure, have 'overload' in tsubst_copy, at cp/pt.c glisse at gcc dot gnu.org
  2014-12-14  0:23 ` [Bug c++/62207] " ville.voutilainen at gmail dot com
@ 2014-12-14  9:57 ` glisse at gcc dot gnu.org
  2014-12-14 12:21 ` ville.voutilainen at gmail dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: glisse at gcc dot gnu.org @ 2014-12-14  9:57 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62207

--- Comment #2 from Marc Glisse <glisse at gcc dot gnu.org> ---
(In reply to Ville Voutilainen from comment #1)
> Current trunk doesn't ICE.

Yes it does. Is your compiler built with checking disabled?

$ g++ x.c
[many errors]
x.c:16:3: internal compiler error: tree check: expected tree that contains
'decl minimal' structure, have 'overload' in tsubst_copy, at cp/pt.c:12934
   ptr
   ^
0x125b6b0 tree_contains_struct_check_failed(tree_node const*,
tree_node_structure_enum, char const*, int, char const*)
    /data/repos/gcc/trunk/gcc/tree.c:9398
0x6dc0f5 contains_struct_check(tree_node*, tree_node_structure_enum, char
const*, int, char const*)
    /data/repos/gcc/trunk/gcc/tree.h:2893
0x792744 tsubst_copy
    /data/repos/gcc/trunk/gcc/cp/pt.c:12934
0x7a0b6c tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
    /data/repos/gcc/trunk/gcc/cp/pt.c:15527
0x79af03 tsubst_expr
    /data/repos/gcc/trunk/gcc/cp/pt.c:14342
0x796926 tsubst_expr
    /data/repos/gcc/trunk/gcc/cp/pt.c:13753
0x7967e7 tsubst_expr
    /data/repos/gcc/trunk/gcc/cp/pt.c:13739
0x797ed0 tsubst_expr
    /data/repos/gcc/trunk/gcc/cp/pt.c:13925
0x7b6cea instantiate_decl(tree_node*, int, bool)
    /data/repos/gcc/trunk/gcc/cp/pt.c:20352
0x7b7633 instantiate_pending_templates(int)
    /data/repos/gcc/trunk/gcc/cp/pt.c:20468
0x8106d6 cp_write_global_declarations()
    /data/repos/gcc/trunk/gcc/cp/decl2.c:4389


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/62207] ICE: tree check: expected tree that contains 'decl minimal' structure, have 'overload' in tsubst_copy, at cp/pt.c
  2014-08-20 17:24 [Bug c++/62207] New: ICE: tree check: expected tree that contains 'decl minimal' structure, have 'overload' in tsubst_copy, at cp/pt.c glisse at gcc dot gnu.org
  2014-12-14  0:23 ` [Bug c++/62207] " ville.voutilainen at gmail dot com
  2014-12-14  9:57 ` glisse at gcc dot gnu.org
@ 2014-12-14 12:21 ` ville.voutilainen at gmail dot com
  2021-05-14 10:02 ` [Bug c++/62207] [8 Regression] " jakub at gcc dot gnu.org
  2021-08-10 16:49 ` reichelt at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: ville.voutilainen at gmail dot com @ 2014-12-14 12:21 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62207

Ville Voutilainen <ville.voutilainen at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-12-14
     Ever confirmed|0                           |1
      Known to fail|                            |5.0

--- Comment #3 from Ville Voutilainen <ville.voutilainen at gmail dot com> ---
Ah. Sorry, I don't think the online compiler I used to try this enables
tree checking. My local copy ICEs.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/62207] [8 Regression] ICE: tree check: expected tree that contains 'decl minimal' structure, have 'overload' in tsubst_copy, at cp/pt.c
  2014-08-20 17:24 [Bug c++/62207] New: ICE: tree check: expected tree that contains 'decl minimal' structure, have 'overload' in tsubst_copy, at cp/pt.c glisse at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2014-12-14 12:21 ` ville.voutilainen at gmail dot com
@ 2021-05-14 10:02 ` jakub at gcc dot gnu.org
  2021-08-10 16:49 ` reichelt at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-05-14 10:02 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62207

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
   Target Milestone|8.5                         |8.0
                 CC|                            |jakub at gcc dot gnu.org
         Resolution|---                         |FIXED

--- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed in 8.1.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/62207] [8 Regression] ICE: tree check: expected tree that contains 'decl minimal' structure, have 'overload' in tsubst_copy, at cp/pt.c
  2014-08-20 17:24 [Bug c++/62207] New: ICE: tree check: expected tree that contains 'decl minimal' structure, have 'overload' in tsubst_copy, at cp/pt.c glisse at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2021-05-14 10:02 ` [Bug c++/62207] [8 Regression] " jakub at gcc dot gnu.org
@ 2021-08-10 16:49 ` reichelt at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: reichelt at gcc dot gnu.org @ 2021-08-10 16:49 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62207

Volker Reichelt <reichelt at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|8.0                         |9.0
      Known to work|                            |9.1.0

--- Comment #13 from Volker Reichelt <reichelt at gcc dot gnu.org> ---
It's fixed in GCC 9, but not 8.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-08-10 16:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-20 17:24 [Bug c++/62207] New: ICE: tree check: expected tree that contains 'decl minimal' structure, have 'overload' in tsubst_copy, at cp/pt.c glisse at gcc dot gnu.org
2014-12-14  0:23 ` [Bug c++/62207] " ville.voutilainen at gmail dot com
2014-12-14  9:57 ` glisse at gcc dot gnu.org
2014-12-14 12:21 ` ville.voutilainen at gmail dot com
2021-05-14 10:02 ` [Bug c++/62207] [8 Regression] " jakub at gcc dot gnu.org
2021-08-10 16:49 ` reichelt 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).