This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/71974] Warning: uninitialized variable with OpenMP nested loops


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71974

--- Comment #3 from Rafael Guglielmetti <register at rgug dot ch> ---
(In reply to Eric Gallager from comment #2)
> (In reply to Rafael Guglielmetti from comment #1)
> > With gcc 6.1.1, the above code gives rise to the error:
> > error: condition expression refers to iteration variable ‘i’
> > 
> > So I suppose my syntax was incorrect. It is annoying tough.
> 
> Do you have a version of your code that avoids that error? I get it, too,
> and so I can't reproduce the warning with that error there... WAITING on a
> valid testcase.

I think I did something else but I don't remember how I avoid this problem,
sorry.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]