This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/27884] New: [4.2 regression] bogus error: invalid use of 'register' in linkage specification
- From: "tbm at cyrius dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Jun 2006 17:12:42 -0000
- Subject: [Bug debug/27884] New: [4.2 regression] bogus error: invalid use of 'register' in linkage specification
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Between 20060508 and 20060530 gcc 4.2 changed to now longer allow the following
code. This error seems bogus to me.
(sid)3733:tbm@test: ~] cat test.cc
extern "C" void foo(register int *my_perl);
(sid)3734:tbm@test: ~] c++ -c test.cc
test.cc:1: error: invalid use of 'register' in linkage specification
zsh: exit 1 c++ -c test.cc
(sid)3735:tbm@test: ~]
--
Summary: [4.2 regression] bogus error: invalid use of 'register'
in linkage specification
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: debug
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: tbm at cyrius dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27884