Bug 67105 - use of global register variables should emit a pedwarn
Summary: use of global register variables should emit a pedwarn
Status: UNCONFIRMED
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 6.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-03 18:42 UTC by Daniel Gutson
Modified: 2015-10-21 02:13 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Gutson 2015-08-03 18:42:13 UTC
This is a spinoff of https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67064 specially comment https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67064#c16

So basically:

struct s {
  int i;
};
register struct s *reg asm( "si" );

should pedwarn.