Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 475280
Collapse All | Expand All

(-)gcc/testsuite/g++.dg/parse/ref-qual2.C (+6 lines)
Line 0 Link Here
1
// PR c++/57532
2
3
int main()
4
{
5
    return (int() & int());
6
}
(-)gcc/cp/parser.c (+5 lines)
Lines 16986-16991 Link Here
16986
{
16986
{
16987
  cp_ref_qualifier ref_qual = REF_QUAL_NONE;
16987
  cp_ref_qualifier ref_qual = REF_QUAL_NONE;
16988
  cp_token *token = cp_lexer_peek_token (parser->lexer);
16988
  cp_token *token = cp_lexer_peek_token (parser->lexer);
16989
16990
  /* Don't try to parse bitwise '&' as a ref-qualifier (c++/57532).  */
16991
  if (cxx_dialect < cxx11 && cp_parser_parsing_tentatively (parser))
16992
    return ref_qual;
16993
16989
  switch (token->type)
16994
  switch (token->type)
16990
    {
16995
    {
16991
    case CPP_AND:
16996
    case CPP_AND:

Return to bug 475280