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

* [Bug c++/48169] compiler is confused about scope
  2011-03-17 15:45 [Bug c++/48169] New: compiler is confused about scope peterf at silvaco dot com
@ 2011-03-17 15:46 ` peterf at silvaco dot com
  2011-03-17 15:47 ` peterf at silvaco dot com
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: peterf at silvaco dot com @ 2011-03-17 15:46 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Peter Foelsche <peterf at silvaco dot com> 2011-03-17 15:45:48 UTC ---
Created attachment 23696
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23696
command to call the compiler


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

* [Bug c++/48169] compiler is confused about scope
  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
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: peterf at silvaco dot com @ 2011-03-17 15:47 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Peter Foelsche <peterf at silvaco dot com> 2011-03-17 15:46:26 UTC ---
Created attachment 23697
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23697
gzipped compiler log


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

* [Bug c++/48169] compiler is confused about scope
  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
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: peterf at silvaco dot com @ 2011-03-17 15:48 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Peter Foelsche <peterf at silvaco dot com> 2011-03-17 15:47:09 UTC ---
Created attachment 23698
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23698
output of "uname -a"


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

* [Bug c++/48169] compiler is confused about scope
  2011-03-17 15:45 [Bug c++/48169] New: compiler is confused about scope peterf at silvaco dot com
                   ` (2 preceding siblings ...)
  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 ` peterf at silvaco dot com
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: redi at gcc dot gnu.org @ 2011-03-17 16:02 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID
           Severity|critical                    |normal

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-03-17 16:02:00 UTC ---
In a template unqualified names are not looked up in dependent base classes

Even if it was a bug, it would not be 'critical' severity, gcc does not crash,
no data is lost.. That field is not meant for you to say "I think this is
really really important"


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

* [Bug c++/48169] compiler is confused about scope
  2011-03-17 15:45 [Bug c++/48169] New: compiler is confused about scope peterf at silvaco dot com
                   ` (4 preceding siblings ...)
  2011-03-17 16:14 ` peterf at silvaco dot com
@ 2011-03-17 16:14 ` redi at gcc dot gnu.org
  2011-03-17 16:19 ` peterf at silvaco dot com
  2011-03-17 16:40 ` redi at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: redi at gcc dot gnu.org @ 2011-03-17 16:14 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-03-17 16:08:32 UTC ---
http://womble.decadent.org.uk/c++/template-faq.html#base-lookup


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

* [Bug c++/48169] compiler is confused about scope
  2011-03-17 15:45 [Bug c++/48169] New: compiler is confused about scope peterf at silvaco dot com
                   ` (3 preceding siblings ...)
  2011-03-17 16:02 ` redi at gcc dot gnu.org
@ 2011-03-17 16:14 ` peterf at silvaco dot com
  2011-03-17 16:14 ` redi at gcc dot gnu.org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: peterf at silvaco dot com @ 2011-03-17 16:14 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Peter Foelsche <peterf at silvaco dot com> 2011-03-17 16:14:27 UTC ---
> In a template unqualified names are not looked up in dependent base classes

Aegypt?!

Then explain to me, why it works for all the other classes and including other
methods inside this class.


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

* [Bug c++/48169] compiler is confused about scope
  2011-03-17 15:45 [Bug c++/48169] New: compiler is confused about scope peterf at silvaco dot com
                   ` (5 preceding siblings ...)
  2011-03-17 16:14 ` redi at gcc dot gnu.org
@ 2011-03-17 16:19 ` peterf at silvaco dot com
  2011-03-17 16:40 ` redi at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: peterf at silvaco dot com @ 2011-03-17 16:19 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Peter Foelsche <peterf at silvaco dot com> 2011-03-17 16:18:13 UTC ---
(In reply to comment #6)
> > In a template unqualified names are not looked up in dependent base classes
> 
> Aegypt?!
> 
> Then explain to me, why it works for all the other classes and including other
> methods inside this class.

never mind -- I understand -- sorry about the noise


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

* [Bug c++/48169] compiler is confused about scope
  2011-03-17 15:45 [Bug c++/48169] New: compiler is confused about scope peterf at silvaco dot com
                   ` (6 preceding siblings ...)
  2011-03-17 16:19 ` peterf at silvaco dot com
@ 2011-03-17 16:40 ` redi at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: redi at gcc dot gnu.org @ 2011-03-17 16:40 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-03-17 16:19:07 UTC ---
See the link in comment 5, or this one:
http://clang.llvm.org/compatibility.html#dep_lookup_bases
or this one:
http://www.parashift.com/c++-faq/templates.html#faq-35.19


^ 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 ` peterf at silvaco dot com
2011-03-17 16:14 ` redi at gcc dot gnu.org
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).