Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeder.erje.net!news.albasani.net!.POSTED!not-for-mail |
|---|---|
| From | Daniel Krügler<daniel.kruegler@googlemail.com> |
| Newsgroups | comp.std.c++ |
| Subject | Re: Defect report: variables with linkage defined in block scope |
| Date | Sun, 13 Nov 2011 15:26:15 -0800 (PST) |
| Organization | A noiseless patient Spider |
| Lines | 25 |
| Sender | std-cpp-request@vandevoorde.com |
| Approved | stephen.clamage@oracle.com |
| Message-ID | <j9olqn$ef1$1@dont-email.me> (permalink) |
| References | <54715.10.0.7.182.1321064656.squirrel@webmail.secure.aluminati.net> |
| NNTP-Posting-Host | icuehpr8Cn4pgYhhvQsiVywGBQ0M2n4SQQUNn+7mavI= |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| X-Trace | news.albasani.net NMs0LzajlXc840aQXwo9aH+qRxGZcxGOhNV9HjKAdm81BkUeKtQH05pqqaNJNiQ5zpxHJTE+ysZ3fRWeWnCf2g== |
| X-Complaints-To | abuse@albasani.net |
| NNTP-Posting-Date | Sun, 13 Nov 2011 23:26:18 +0000 (UTC) |
| X-Mailer | Perl5 Mail::Internet v2.05 |
| X-Submission-Address | std-cpp-submit@vandevoorde.com |
| Cancel-Lock | sha1:Z76uL7l8VRYT0BpuuywyM2qAKiQ= |
| X-Original-Date | Sun, 13 Nov 2011 15:56:38 +0100 |
| Xref | x330-a1.tempe.blueboxinc.net comp.std.c++:378 |
Show key headers only | View raw
Am 12.11.2011 20:33, schrieb Richard Smith: > C89 6.5.7 and C99 6.7.8/5 say "If the declaration of an identifier has block > scope, and the identifier has external or internal linkage, the declaration > shall have no initializer for the identifier." Just for the record: The recent C11 draft has above quoted wording in 6.7.9/5. > C++ appears to have no such restriction (though if someone can point out where > such a restriction lives, I'll happily stand corrected). I haven't found corresponding words either in C++, I therefore forwarded your report to CWG. Greetings from Bremen, Daniel Krügler -- [ comp.std.c++ is moderated. To submit articles, try posting with your ] [ newsreader. If that fails, use mailto:std-cpp-submit@vandevoorde.com ] [ --- Please see the FAQ before posting. --- ] [ FAQ: http://www.comeaucomputing.com/csc/faq.html ]
Back to comp.std.c++ | Previous | Next — Previous in thread | Find similar | Unroll thread
Defect report: variables with linkage defined in block scope "Richard Smith" <richard@metafoo.co.uk> - 2011-11-12 11:33 -0800 Re: Defect report: variables with linkage defined in block scope Daniel Krügler<daniel.kruegler@googlemail.com> - 2011-11-13 15:26 -0800
csiph-web