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

            Bug ID: 93472
           Summary: Document extended forms of constant expression
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: tromey at gcc dot gnu.org
  Target Milestone: ---

GCC accepts extended forms of constant expression.
An example that came up recently was:

const int a = 5;
const int b = a;


IIUC the standard permits the compiler to accept other
forms of constant expression.  However, I couldn't find
this in the documentation, and I think it would be
good if GCC documented the extensions it supports.

Perhaps a new node in the "C Implementation-Defined Behavior"
section would be appropriate.

Reply via email to