Skip to content

Parse error with gcc 6.3 #462

Closed
Closed
@jamesjer

Description

@jamesjer

WIth gcc 6.3, cbmc 5.6 fails one test, regression/cpp/enum8/test.desc, when processing this definition in /usr/include/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:

namespace std
{
  typedef __SIZE_TYPE__ 	size_t;
  typedef __PTRDIFF_TYPE__	ptrdiff_t;

#if __cplusplus >= 201103L
  typedef decltype(nullptr)	nullptr_t;
#endif
}

The issue arises from the nullptr_t definition, which cbmc's parser does not seem to understand. Running the test in c++98 mode works around the issue. However, on systems with gcc 6.3, runtime failures follow from the same issue; see https://bugzilla.redhat.com/show_bug.cgi?id=1414925 for one example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions