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

--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Plain int is enough:

constexpr int fn(const int b) { return b; }
constexpr int c = fn(alignof(int));
alignas(c) char d;

We have an INTEGER_CST with const int type; that doesn't seem entirely correct.
 Maybe adjust_temp_type or cp_fold_convert should be tweaked not to produce
cv-qualified _CSTs.

Reply via email to