public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/48169] New: compiler is confused about scope
@ 2011-03-17 15:45 peterf at silvaco dot com
  2011-03-17 15:46 ` [Bug c++/48169] " peterf at silvaco dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: peterf at silvaco dot com @ 2011-03-17 15:45 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: compiler is confused about scope
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: peterf@silvaco.com


Created attachment 23695
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23695
gzipped .ii file

The compiler seems to get totally confused about scope.
Here comes the error message:

In file included from
VerilogA/src/vsLexer/../../include/vsParser/vsYYparse.H:22:0,
                 from vsVeriSmartLex.cxx:1652:
VerilogA/src/vsLexer/../../include/vsParser/../vsExpr/vsExpr.H: In member
function ‘virtual CVectorOfVisited CTwoArgumentOperator<P, BCOMMUTATIVE,
KIND, TYPE, CREATEFROMCHILDREN, BDERIVE, DERIVE, GETPOTENTIALREPRESENTATIONS,
TYPE_FLAGS>::getPotentialRepresentations(const visited*,
silvaco::verilogCompiler::CVerilogCompilerArgs*) const’:
VerilogA/src/vsLexer/../../include/vsParser/../vsExpr/vsExpr.H:1985:22: error:
too few arguments to function ‘int clone(int (*)(void*), void*, int,
void*)’
/usr/include/bits/sched.h:71:12: note: declared here
VerilogA/src/vsLexer/../../include/vsParser/../vsExpr/vsExpr.H:1987:25: error:
‘m_sChildren’ was not declared in this scope
VerilogA/src/vsLexer/../../include/vsParser/../vsExpr/vsExpr.H:1989:52: error:
there are no arguments to ‘createFromChildren1’ that depend on a template
parameter, so a declaration of ‘createFromChildren1’ must be available
VerilogA/src/vsLexer/../../include/vsParser/../vsExpr/vsExpr.H:1989:52: note:
(if you use ‘-fpermissive’, G++ will accept your code, but allowing the use
of an undeclared name is deprecated)

To make this compileable, 
simply add a 
this-> 
in front of every member object or method:

clone, m_sChildren, createFromChildren1


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

end of thread, other threads:[~2011-03-17 16:19 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-17 15:45 [Bug c++/48169] New: compiler is confused about scope peterf at silvaco dot com
2011-03-17 15:46 ` [Bug c++/48169] " peterf at silvaco dot com
2011-03-17 15:47 ` peterf at silvaco dot com
2011-03-17 15:48 ` peterf at silvaco dot com
2011-03-17 16:02 ` redi at gcc dot gnu.org
2011-03-17 16:14 ` redi at gcc dot gnu.org
2011-03-17 16:14 ` peterf at silvaco dot com
2011-03-17 16:19 ` peterf at silvaco dot com
2011-03-17 16:40 ` redi at gcc dot gnu.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).