public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/27732]  New: Parentheses elicit spurious error: "missing '>' to terminate the template argument list"
@ 2006-05-22 20:08 widman at gimpel dot com
  2006-05-22 22:46 ` [Bug c++/27732] " bangerth at dealii dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: widman at gimpel dot com @ 2006-05-22 20:08 UTC (permalink / raw)
  To: gcc-bugs

I get spurious errors from g++ in the following cases: 

// case 1:
int m;
template< int* p> struct A { };
template<> struct A<&(m)>;

// case 2:
int m;
template< int* p> struct A { };
template<> struct A<(&m)>;

Just a guess:  is there something about the parse of '(' that gums up the
works?


-- 
           Summary: Parentheses elicit spurious error: "missing '>' to
                    terminate the template argument list"
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: widman at gimpel dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27732


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-02-03 17:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-22 20:08 [Bug c++/27732] New: Parentheses elicit spurious error: "missing '>' to terminate the template argument list" widman at gimpel dot com
2006-05-22 22:46 ` [Bug c++/27732] " bangerth at dealii dot org
2006-05-23 15:10 ` widman at gimpel dot com
2006-09-17 19:30 ` [Bug c++/27732] [4.0/4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
2006-10-16 23:25 ` [Bug c++/27732] [4.0 " mmitchel at gcc dot gnu dot org
2007-02-03 17:22 ` gdr at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).