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

--- Comment #1 from Drea Pinski <pinskia at gcc dot gnu.org> ---
Reduced:
```
#ifndef __GXX_CONSTEXPR_ASM__
# error "missing support for constexpr asm"
#endif

struct s1
{
  char a1[16];//={};
  int len;
  template<int a>
  constexpr s1(const char (&s)[a])
  {
    if(a>16)  __builtin_trap();
    for(int i =0;i < a; i++)
      a1[i] = s[i];
    len = a;
  }
  constexpr int size() { return len;}
  constexpr const char *data() { return a1; }
};


void f()
{
  asm((s1("#  ")));
}
```

The question becomes is incompletely initialized variable valid here. I am not
sure.

Reply via email to