This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug debug/27884] New: [4.2 regression] bogus error: invalid use of 'register' in linkage specification


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]