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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2018-03-02
                 CC|                            |jakub at gcc dot gnu.org
   Target Milestone|---                         |7.4
            Summary|internal compiler error: in |[7/8 Regression] internal
                   |build_value_init, at        |compiler error: in
                   |cp/init.c:343               |build_value_init, at
                   |                            |cp/init.c:343
     Ever confirmed|0                           |1

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
struct S {} a[1];

template <int N>
void
foo ()
{
  __attribute__ ((noinline (a[0]))) int c = 0;
}

Started with r239267, before it has been rejected:

pr84665.C: In function ‘void foo()’:
pr84665.C:7:41: error: wrong number of arguments specified for ‘noinline’
attribute
   __attribute__ ((noinline (a[0]))) int c = 0;
                                         ^

Reply via email to