re PR c++/6634 (wrong parsing of "long long double")
PR c++/6634 * decl.c (grokdeclarator): Check whether "long" or "short" was specified for non-integral types. * g++.dg/parse/long1.C: Add more tests. From-SVN: r115843
This commit is contained in:
parent
caade1927f
commit
5d48268fad
|
@ -1,3 +1,9 @@
|
|||
2006-07-31 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
|
||||
|
||||
PR c++/6634
|
||||
* decl.c (grokdeclarator): Check whether "long" or "short" was
|
||||
specified for non-integral types.
|
||||
|
||||
2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
|
||||
|
||||
* Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
|
||||
|
|
|
@ -7198,6 +7198,8 @@ grokdeclarator (const cp_declarator *declarator,
|
|||
error ("%<long%> invalid for %qs", name);
|
||||
else if (short_p && TREE_CODE (type) == REAL_TYPE)
|
||||
error ("%<short%> invalid for %qs", name);
|
||||
else if ((long_p || short_p) && TREE_CODE (type) != INTEGER_TYPE)
|
||||
error ("%<long%> or %<short%> invalid for %qs", name);
|
||||
else if ((long_p || short_p) && explicit_char)
|
||||
error ("%<long%> or %<short%> specified with char for %qs", name);
|
||||
else if (long_p && short_p)
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
2006-07-31 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
|
||||
|
||||
PR c++/6634
|
||||
* g++.dg/parse/long1.C: Add more tests.
|
||||
|
||||
2006-07-30 Francois-Xavier Coudert <coudert@clipper.ens.fr>
|
||||
|
||||
* gfortran.dg/lrshift_1.c: New file.
|
||||
|
|
|
@ -5,3 +5,7 @@
|
|||
long long double x; // { dg-error "long long" }
|
||||
long double y;
|
||||
long float z; // { dg-error "long" }
|
||||
|
||||
typedef short void SV; // { dg-error "short" }
|
||||
typedef long struct A LA; // { dg-error "long" }
|
||||
typedef short char SC; // { dg-error "short" }
|
||||
|
|
Loading…
Reference in New Issue