Bugzilla – Attachment 29 Details for
Bug 36
Templates declared in functions have wrong scope
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Bug creation and email sending has been disabled, file new bugs at
gcc.gnu.org/bugzilla
test case 2
test2.d (text/x-dsrc), 554 bytes, created by
Johannes Pfau
on 2013-01-19 12:24:17 CET
(
hide
)
Description:
test case 2
Filename:
MIME Type:
Creator:
Johannes Pfau
Created:
2013-01-19 12:24:17 CET
Size:
554 bytes
patch
obsolete
> >void parseJSON()(char val) >{ > void error() > { > } > > struct S(T){ > void getChar() //Scope not set to parseJSON > { > error(); > }} > > > void parseString() > { > S!(int)().getChar(); > } >} > >void main() >{ > parseJSON('n'); >} >/+ >* Everything that is in function scope is always added to module scope (parent is point of Declaration) > * it's possible that parent == struct, but the decl is in module scope > >* Everything that is in class/struct/interface scope is added to class/struct/interface (parent OK?) >* >+/
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 36
:
27
|
28
|
29
|
30
|
31
|
32