File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -1661,25 +1661,26 @@ grammar P6 is STD {
1661
1661
:dba ('scoped declarator' )
1662
1662
<.ws >
1663
1663
[
1664
- | <declarator >
1665
- | <regex_declarator >
1666
- | <package_declarator >
1664
+ | <declarator >< .ws >
1665
+ | <regex_declarator >< .ws >
1666
+ | <package_declarator >< .ws >
1667
1667
| [<typename ><.ws >]+
1668
1668
{
1669
1669
my $ t = $ < typename > ;
1670
1670
@$ t > 1 and $¢. sorry(" Multiple prefix constraints not yet supported" );
1671
1671
$ * OFTYPE = $ t [0 ];
1672
1672
}
1673
- <multi_declarator >
1674
- | <multi_declarator >
1675
- ] <.ws >
1676
- || <? before <[ A..Z ] >><longname >{
1673
+ <multi_declarator ><.ws >
1674
+ | <multi_declarator ><.ws >
1675
+ | { } <longname > {
1677
1676
my $ t = $ < longname > . Str ;
1678
- if not $¢. is_known($ t ) {
1677
+ say " HERE $ t" ;
1678
+ if ord ($ t ) < 97 and not $¢. is_known($ t ) {
1679
1679
$¢. sorry(" In $ * SCOPE declaration, typename '$ t ' must be predeclared (or marked as declarative with :: prefix)" );
1680
1680
}
1681
1681
}
1682
1682
<!> # drop through
1683
+ ]
1683
1684
|| <.panic : "Malformed $*SCOPE" >
1684
1685
}
1685
1686
You can’t perform that action at this time.
0 commit comments