The C++ generates a broken diagnostic for the following invalid code
snippet since GCC 4.0.0:
=====================================
template<typename T> struct A
{
A<__builtin_offsetof(T, x)>();
};
=====================================
bug.cc:3: error: type/value mismatch at argument 1 in template parameter list
for 'template<class T> struct A'
bug.cc:3: error: expected a type, got '#'offsetof_expr' not supported by
dump_expr#<expression error>'
--
Summary: [4.1/4.2/4.3 regression] Broken diagnostic:
'offsetof_expr' not supported by dump_expr
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: diagnostic, monitored
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33842