public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/105567] New: [13 regression] bootstrap failure on arm due to bogus constructor warning
@ 2022-05-11 13:46 rearnsha at gcc dot gnu.org
  2022-05-11 13:49 ` [Bug bootstrap/105567] " jason at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: rearnsha at gcc dot gnu.org @ 2022-05-11 13:46 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 105567
           Summary: [13 regression] bootstrap failure on arm due to bogus
                    constructor warning
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rearnsha at gcc dot gnu.org
  Target Milestone: ---

On arm constructors implicitly return 'this', but this is leading to a boottrap
failure.

Reduced testcase:

typedef unsigned int size_t;
template<typename, typename, typename> struct vec;
template<typename T, size_t N >
class auto_vec : public vec<T, va_heap>
{
  auto_vec (size_t s )
  {
      {
 return;
      }
  }
};
struct function {
  struct control_flow_graph *cfg;
};
struct edge_iterator {
};
struct control_flow_graph {
  int x_n_basic_blocks;
};
bool
mark_dfs_back_edges (struct function *fun)
{
  auto_vec<edge_iterator, 20> stack (((fun)->cfg->x_n_basic_blocks) + 1);
}

Compile with 'cc1plus -march=armv8-a+simd -mfloat-abi=hard -O2 -g -Wall
-fno-exceptions -quiet '

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

end of thread, other threads:[~2022-05-11 19:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-11 13:46 [Bug bootstrap/105567] New: [13 regression] bootstrap failure on arm due to bogus constructor warning rearnsha at gcc dot gnu.org
2022-05-11 13:49 ` [Bug bootstrap/105567] " jason at gcc dot gnu.org
2022-05-11 13:49 ` rguenth at gcc dot gnu.org
2022-05-11 17:52 ` cvs-commit at gcc dot gnu.org
2022-05-11 19:31 ` 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).