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

            Bug ID: 86227
           Summary: invalid suffix  on floating constant
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zhonghao at pku dot org.cn
  Target Milestone: ---

The code sample is as follow:

#include <typeinfo>
int main() {
 typeid( 0.dd );
}

g++ accepts this code, but clang++ rejects it with a message:
error: invalid suffix 'dd' on floating constant
     typeid( 0.dd );

Shall g++ reject the code as well?

Reply via email to