c-decl.c (start_decl): Unconditionally issue error for 'typedef foo = bar'.
authorZack Weinberg <zack@gcc.gnu.org>
Wed, 9 Oct 2002 21:27:38 +0000 (21:27 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Wed, 9 Oct 2002 21:27:38 +0000 (21:27 +0000)
commit95f79357c5e37b27626a5513b612f8b598e5e8ce
tree5c1833358257015d0bc6c32fda4a348ff65b9084
parent10a38dba685e4c5fe4902bbac5d85bb86326e87f
c-decl.c (start_decl): Unconditionally issue error for 'typedef foo = bar'.

gcc:
* c-decl.c (start_decl): Unconditionally issue error for
'typedef foo = bar'.
(finish_decl): Remove special case for TYPE_DECL with initializer.

* doc/extend.texi: Delete "Naming Types" section.  Change all
cross-references to that section to refer to "Typeof" instead.
Add the useful safe-max()-macro example from "Naming Types" to
"Typeof", rewritten using that extension.

gcc/cp:
* decl.c (start_decl): Unconditionally issue error for
'typedef foo = bar'.
(cp_finish_decl): Remove special case for TYPE_DECL with initializer.
(grokdeclarator): Remove redundant error for 'typedef foo = bar'.

gcc/testsuite:
* g++.dg/ext/typedef-init.C: New test.
* gcc.dg/typedef-init.c: New test.

From-SVN: r57995
gcc/ChangeLog
gcc/c-decl.c
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/doc/extend.texi
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/typedef-init.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/typedef-init.c [new file with mode: 0644]